diff --git a/src/router/index.js b/src/router/index.js index 0e699369..d668ac63 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -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',