diff --git a/chenhai-ui/src/router/index.js b/chenhai-ui/src/router/index.js index 49bba06..0501bc3 100644 --- a/chenhai-ui/src/router/index.js +++ b/chenhai-ui/src/router/index.js @@ -75,21 +75,34 @@ export const constantRoutes = [ hidden: true }, - { path: '', - component: Layout, + component: (resolve) => require(['@/views/Home'], resolve), redirect: 'index', children: [ { 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',