diff --git a/chenhai-ui/src/router/index.js b/chenhai-ui/src/router/index.js index 57e5bef..f6e1e80 100644 --- a/chenhai-ui/src/router/index.js +++ b/chenhai-ui/src/router/index.js @@ -76,25 +76,18 @@ export const constantRoutes = [ }, { - path: '', - component: (resolve) => require(['@/views/Home'], resolve), - redirect: 'index', + path: '/indexHome', + component: () => import('@/views/index'), + hidden: true, children: [ { path: 'index', - name: '首页', - hidden: true - // meta: { title: '首页', icon: 'dashboard', noCache: true, affix: true } + name: 'Index', + meta: { title: '首页', icon: 'dashboard', affix: true } } ] }, - { - path: 'index', - component: () => import('@/views/index'), - hidden: true - }, - // { // path: '', // component: Layout, diff --git a/chenhai-ui/src/views/Home.vue b/chenhai-ui/src/views/Home.vue index 2752bc8..695410d 100644 --- a/chenhai-ui/src/views/Home.vue +++ b/chenhai-ui/src/views/Home.vue @@ -332,7 +332,7 @@ export default { this.showOverview = false }, handleAdmin(e) { - window.open('index', '_blank') + window.open('/indexHome', '_blank') this.showOverview = false }, assetAuantity() {