diff --git a/chenhai-ui/src/router/index.js b/chenhai-ui/src/router/index.js index e92364a..49bba06 100644 --- a/chenhai-ui/src/router/index.js +++ b/chenhai-ui/src/router/index.js @@ -75,25 +75,22 @@ export const constantRoutes = [ hidden: true }, + { - path: 'index', - component: () => import('@/views/index'), - hidden: true + path: '', + component: Layout, + redirect: 'index', + children: [ + { + path: 'index', + component: () => import('@/views/Home'), + name: 'Index', + meta: { title: '首页', icon: 'dashboard', affix: true } + } + ] }, - // { - // path: '', - // component: Layout, - // redirect: 'index', - // children: [ - // { - // path: 'index', - // component: () => import('@/views/index'), - // name: 'Index', - // meta: { title: '首页', icon: 'dashboard', affix: true } - // } - // ] - // }, + { path: '/lock', component: () => import('@/views/lock'),