|
@ -45,6 +45,11 @@ export let constantRoutes = [ |
|
|
component: () => import('@/views/redirect/index') |
|
|
component: () => import('@/views/redirect/index') |
|
|
}] |
|
|
}] |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
path: '*', |
|
|
|
|
|
redirect: '/404', |
|
|
|
|
|
hidden: true |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
path: '/login', |
|
|
path: '/login', |
|
|
component: () => import('@/views/login/index'), |
|
|
component: () => import('@/views/login/index'), |
|
@ -145,11 +150,11 @@ export let constantRoutes = [ |
|
|
export let asyncRoutes = [ |
|
|
export let asyncRoutes = [ |
|
|
/** when your routing map is too long, you can split it into small modules **/ |
|
|
/** when your routing map is too long, you can split it into small modules **/ |
|
|
// 404 page must be placed at the end !!!
|
|
|
// 404 page must be placed at the end !!!
|
|
|
{ |
|
|
// {
|
|
|
path: '*', |
|
|
// path: '*',
|
|
|
redirect: '/404', |
|
|
// redirect: '/404',
|
|
|
hidden: true |
|
|
// hidden: true
|
|
|
} |
|
|
// }
|
|
|
] |
|
|
] |
|
|
|
|
|
|
|
|
const createRouter = () => new Router({ |
|
|
const createRouter = () => new Router({ |
|
|