diff --git a/yudao-ui-admin/src/router/index.js b/yudao-ui-admin/src/router/index.js index 825b86844..af9c8d102 100644 --- a/yudao-ui-admin/src/router/index.js +++ b/yudao-ui-admin/src/router/index.js @@ -64,22 +64,17 @@ export const constantRoutes = [ component: (resolve) => require(['@/views/error/401'], resolve), hidden: true }, - // { - // path: '', - // component: Layout, - // redirect: 'index', - // children: [{ - // path: 'index', - // component: (resolve) => require(['@/views/index'], resolve), - // name: '首页', - // meta: {title: '首页', icon: 'dashboard', affix: true} - // } - // ] - // }, { - path:'/', - component: Layout, - redirect: '/product/store', + path: '', + component: Layout, + redirect: 'index', + children: [{ + path: 'index', + component: (resolve) => require(['@/views/index'], resolve), + name: '首页', + meta: {title: '首页', icon: 'dashboard', affix: true} + } + ] }, { path: '/user', diff --git a/yudao-ui-admin/src/views/index.vue b/yudao-ui-admin/src/views/index.vue index d2d2ec633..ad2206846 100644 --- a/yudao-ui-admin/src/views/index.vue +++ b/yudao-ui-admin/src/views/index.vue @@ -1,31 +1,31 @@