how to get the first slug for the router link code example
Example: page slug vuejs
{
path: '/movies/:slug',
name: 'moviedetail',
component: MovieDetail
}
{
path: '/movies/:slug',
name: 'moviedetail',
component: MovieDetail
}