3👍
✅
You can declare an optional argument:
{
path: '/users/:id/:user_id?',
component: () => import('@/views/Users')
}
This will work for /users/39
and /users/39/58
Source:stackexchange.com