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: '',