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