路由修改
This commit is contained in:
parent
1cf4cc9a50
commit
c195592f48
|
|
@ -65,14 +65,28 @@ export const constantRoutes = [
|
|||
path: '',
|
||||
component: Layout,
|
||||
redirect: '/canteen/index',
|
||||
// children: [
|
||||
// {
|
||||
// path: 'index',
|
||||
// component: () => import('@/views/index_v1'),
|
||||
// name: 'Index',
|
||||
// meta: { title: '首页', icon: 'dashboard', affix: true }
|
||||
// }
|
||||
// ]
|
||||
children: [
|
||||
{
|
||||
path: 'index',
|
||||
component: () => import('@/views/index_v1'),
|
||||
name: 'Index',
|
||||
meta: { title: '首页', icon: 'dashboard', affix: true }
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/canteen',
|
||||
component: Layout,
|
||||
hidden: true,
|
||||
redirect: 'noredirect',
|
||||
children: [
|
||||
{
|
||||
path: 'index',
|
||||
component: () => import('@/views/index_v1'),
|
||||
name: 'index',
|
||||
meta: { title: '食堂数据总览', icon: 'dashboard' }
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/user',
|
||||
|
|
|
|||
Loading…
Reference in New Issue