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