const routes = [
{
path: '/admin',
component: () => import('../Pages/Dashboard.vue'),
name: 'dashboard',
children: [
{
path: 'requests',
component: () => import('../Pages/Dashboard.vue'),
name: 'requests'
},
]
},
{
path: '/admin/404',
component: () => import('../Pages/Errors/NotFound.vue'),
name: '404',
},
{
path: '*',
redirect: { name: '404' }
}
]
admin/blabla
admin/blabla/
{
path: '*',
redirect: { name: '404' }
}
{
path: "/admin",
component: Admin,
children: [
{
path: "dash",
component: Dash
},
{
path: "*",
redirect: "/404"
}
]
},