Skip to content

Commit

Permalink
fix web router (#4991)
Browse files Browse the repository at this point in the history
* chore: add new pages to linkis-web and fix bugs of web

* upd: update version

* web router fix
  • Loading branch information
mayinrain authored Nov 28, 2023
1 parent a533c2f commit d9240c0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 23 deletions.
26 changes: 13 additions & 13 deletions linkis-web/src/apps/linkis/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
},
],
Expand Down
12 changes: 2 additions & 10 deletions linkis-web/src/apps/linkis/view/linkis/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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]; //防止出现三级菜单
Expand Down

0 comments on commit d9240c0

Please sign in to comment.