|
|
|
@ -81,31 +81,31 @@ export const constantRoutes = [ |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
path: roterPre, |
|
|
|
|
component: Layout, |
|
|
|
|
redirect: `${roterPre}/dashboard`, |
|
|
|
|
children: [ |
|
|
|
|
{ |
|
|
|
|
path: `${roterPre}/dashboard`, |
|
|
|
|
component: () => import('@/views/dashboard/index'), |
|
|
|
|
name: 'Dashboard', |
|
|
|
|
meta: { title: '控制台', icon: 'dashboard', affix: true } |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
// {
|
|
|
|
|
// path: roterPre,
|
|
|
|
|
// component: Layout,
|
|
|
|
|
// redirect: `${roterPre}/dashboard`,
|
|
|
|
|
// children: [
|
|
|
|
|
// {
|
|
|
|
|
// path: `${roterPre}/dashboard`,
|
|
|
|
|
// component: () => import('@/views/dashboard/index'),
|
|
|
|
|
// name: 'Dashboard',
|
|
|
|
|
// meta: { title: '控制台', icon: 'dashboard', affix: true }
|
|
|
|
|
// }
|
|
|
|
|
// ]
|
|
|
|
|
// },
|
|
|
|
|
{ |
|
|
|
|
path: '/', |
|
|
|
|
component: Layout, |
|
|
|
|
redirect: `${roterPre}/dashboard`, |
|
|
|
|
children: [ |
|
|
|
|
{ |
|
|
|
|
path: `${roterPre}/dashboard`, |
|
|
|
|
component: () => import('@/views/dashboard/index'), |
|
|
|
|
name: 'Dashboard', |
|
|
|
|
meta: { title: '控制台', icon: 'dashboard', affix: true } |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
redirect: `${roterPre}/product/list`, |
|
|
|
|
// children: [
|
|
|
|
|
// {
|
|
|
|
|
// path: `${roterPre}/dashboard`,
|
|
|
|
|
// component: () => import('@/views/dashboard/index'),
|
|
|
|
|
// name: 'Dashboard',
|
|
|
|
|
// meta: { title: '控制台', icon: 'dashboard', affix: true }
|
|
|
|
|
// }
|
|
|
|
|
// ]
|
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
path: `${roterPre}/login`, |
|
|
|
|