主页框架
This commit is contained in:
@@ -10,22 +10,37 @@ const router = createRouter({
|
||||
history: createWebHistory('/'),
|
||||
// history: createWebHistory(import.meta.env.VITE_APP_URL),
|
||||
routes: [
|
||||
// {
|
||||
// path: '/',
|
||||
// redirect: '/welcome'
|
||||
// },
|
||||
// {
|
||||
// path: '/asistant',
|
||||
// name: 'asistant',
|
||||
// component: () => import('../views/asistant/index.vue'),
|
||||
// meta: { cache: true, verify: () => VerifyIDs(2) }
|
||||
// },
|
||||
|
||||
{
|
||||
path: '/',
|
||||
redirect: '/home'
|
||||
},
|
||||
{
|
||||
path: '/',
|
||||
name: 'index',
|
||||
component: () => import('../views/login/index.vue'),
|
||||
},
|
||||
{
|
||||
path: '/login',
|
||||
name: 'login',
|
||||
component: () => import('../views/login/login.vue'),
|
||||
},
|
||||
{
|
||||
path: '/home',
|
||||
name: 'home',
|
||||
component: () => import('../views/home/index.vue'),
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
name: 'test',
|
||||
component: () => import('../views/home/test.vue')
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/:pathMatch(.*)',
|
||||
name: '404',
|
||||
component: () => import('../views/404.vue'),
|
||||
},
|
||||
}
|
||||
]
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user