|
|
@ -75,21 +75,34 @@ export const constantRoutes = [ |
|
|
hidden: true |
|
|
hidden: true |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
path: '', |
|
|
path: '', |
|
|
component: Layout, |
|
|
|
|
|
|
|
|
component: (resolve) => require(['@/views/Home'], resolve), |
|
|
redirect: 'index', |
|
|
redirect: 'index', |
|
|
children: [ |
|
|
children: [ |
|
|
{ |
|
|
{ |
|
|
path: 'index', |
|
|
path: 'index', |
|
|
component: () => import('@/views/Home'), |
|
|
|
|
|
name: 'Index', |
|
|
|
|
|
meta: { title: '首页', icon: 'dashboard', affix: true } |
|
|
|
|
|
|
|
|
name: '首页', |
|
|
|
|
|
hidden: true |
|
|
|
|
|
// meta: { title: '首页', icon: 'dashboard', noCache: true, affix: true }
|
|
|
} |
|
|
} |
|
|
] |
|
|
] |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// {
|
|
|
|
|
|
// path: '',
|
|
|
|
|
|
// component: Layout,
|
|
|
|
|
|
// redirect: 'index',
|
|
|
|
|
|
// children: [
|
|
|
|
|
|
// {
|
|
|
|
|
|
// path: 'index',
|
|
|
|
|
|
// component: () => import('@/views/index'),
|
|
|
|
|
|
// name: 'Index',
|
|
|
|
|
|
// meta: { title: '首页', icon: 'dashboard', affix: true }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// ]
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
path: '/lock', |
|
|
path: '/lock', |
|
|
|