From 733aa3d0ae1aaf816e270c6262e49174ea887907 Mon Sep 17 00:00:00 2001 From: perry <292303709@qq.com> Date: Tue, 30 May 2023 14:00:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=B3=E8=BD=AC404?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-admin/src/router/index.js | 25 +++++++---------- yudao-ui-admin/src/views/index.vue | 44 +++++++++++++++--------------- 2 files changed, 32 insertions(+), 37 deletions(-) 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 @@