From bde1796ebc9a76de9600cd5c2363b120ae71fa6e Mon Sep 17 00:00:00 2001 From: wuzhihao Date: Fri, 30 Aug 2024 15:40:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BC=98=E5=8C=96=E5=BF=AB=E9=80=9F?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 15 +++++++++++---- src/views/quick-Search/quick-Search.vue | 2 +- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 666df26..5d61f23 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -13,10 +13,17 @@ const routes = [ meta: { title: '登录', activeMenu: '/login' } }, { - path: '/', + // 首页 + path: '/index', component: Layout, - redirect: '/disease-resistance/disease-resistance', - meta: { title: '首页', activeMenu: '/disease-resistance/disease-resistance' } + children: [ + { + path: '/index/index', + component: () => + import('../views/index/index.vue'), + meta: { title: '首页', activeMenu: '/index/index' } + } + ] }, { // 遗传病风险 @@ -161,7 +168,7 @@ router.beforeEach((to, from, next) => { } next('/login') } - next('/login') + // next('/login') } ) export default router diff --git a/src/views/quick-Search/quick-Search.vue b/src/views/quick-Search/quick-Search.vue index 6512d5c..4a7730e 100644 --- a/src/views/quick-Search/quick-Search.vue +++ b/src/views/quick-Search/quick-Search.vue @@ -135,7 +135,7 @@ export default { return { loading: false, showtable: false, - dialogVisible: true, + dialogVisible: false, searchForm: { a: '', b: '',