From d9240c07d5129703300ebdb62e7cd525ba110e34 Mon Sep 17 00:00:00 2001 From: Yonghao Mei <73584269+mayinrain@users.noreply.github.com> Date: Tue, 28 Nov 2023 17:58:00 +0800 Subject: [PATCH] fix web router (#4991) * chore: add new pages to linkis-web and fix bugs of web * upd: update version * web router fix --- linkis-web/src/apps/linkis/router.js | 26 +++++++++---------- .../src/apps/linkis/view/linkis/index.vue | 12 ++------- 2 files changed, 15 insertions(+), 23 deletions(-) diff --git a/linkis-web/src/apps/linkis/router.js b/linkis-web/src/apps/linkis/router.js index a94beab0c5..9aa3b05a32 100644 --- a/linkis-web/src/apps/linkis/router.js +++ b/linkis-web/src/apps/linkis/router.js @@ -289,34 +289,34 @@ export default [ }, }, { - name: 'codeQuery', - path: 'codeQuery', + name: 'configManagement', + path: 'configManagement', component: () => - import('./module/codeQuery/index.vue'), + import('./module/configManagement/index.vue'), meta: { - title: 'codeQuery', + title: 'configManagement', publicPage: true, }, }, { - name: 'codeDetail', - path: 'codeDetail', + name: 'viewHistoryDetail', + path: 'viewHistoryDetail', component: () => - import('./module/codeQuery/codeDetail/index.vue'), + import('./module/globalHistoryManagement/viewHistory.vue'), meta: { - title: 'codeDetail', + title: 'viewHistoryDetail', publicPage: true, + noLayout: true }, }, { - name: 'viewHistoryDetail', - path: 'viewHistoryDetail', + name: 'userConfig', + path: 'userConfig', component: () => - import('./module/globalHistoryManagement/viewHistory.vue'), + import('./module/userConfig/index.vue'), meta: { - title: 'viewHistoryDetail', + title: 'userConfig', publicPage: true, - noLayout: true }, }, ], diff --git a/linkis-web/src/apps/linkis/view/linkis/index.vue b/linkis-web/src/apps/linkis/view/linkis/index.vue index fb579a4a0a..07b792801c 100644 --- a/linkis-web/src/apps/linkis/view/linkis/index.vue +++ b/linkis-web/src/apps/linkis/view/linkis/index.vue @@ -180,7 +180,6 @@ export default { ), showSubMenu: true, }, - { key: '1-11', name: this.$t('message.linkis.sideNavList.function.children.codeQuery'), path: '/console/codeQuery' }, { key: '1-12', name: this.$t( @@ -269,13 +268,6 @@ export default { ), path: '/console/ipListManagement', }, - { - key: '1-10-7', - name: this.$t( - 'message.linkis.sideNavList.function.children.acrossClusterRule' - ), - path: '/console/acrossClusterRule', - }, { key: '1-10-8', name: this.$t( @@ -396,8 +388,8 @@ export default { return } if (index === '1-12') { - this.sideNavList.children[10].showSubMenu = - !this.sideNavList.children[10].showSubMenu + this.sideNavList.children[9].showSubMenu = + !this.sideNavList.children[9].showSubMenu return } // index = index.split('-')[0] + '-' + index.split('-')[1]; //防止出现三级菜单