Answer the question
In order to leave comments, you need to log in
How to make nested Vue-Router URLs?
Hey!
I ran into a problem, here is the route code:
const router = new Router({
mode: 'history',
base: process.env.BASE_URL,
routes: [
{
path: '/sign-in',
name: 'sign-in',
component: () => import('./views/auth/SignIn.vue'),
},
{
path: '/',
name: 'home',
component: () => import('./views/Index.vue'),
},
{
path: '/control-panel',
name: 'control-panel',
component: () => import('./views/control-panel/Index.vue'),
children: [
{
path: 'users',
name: 'control-panel.users',
component: () => import('./views/control-panel/Users.vue')
},
{
path: 'tenders',
name: 'control-panel.tenders',
component: () => import('./views/control-panel/Tenders.vue')
}
]
},
]
})
export default router
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question