feat: 增加控制sub-menus菜单是否显示的方法

This commit is contained in:
Xu Zhimeng 2023-07-13 09:25:14 +08:00
parent 3cfc33d2c0
commit 0b3bbdb166

View File

@ -90,7 +90,9 @@
//
currentChildrenMenus () {
return this.findSubMenus(this.$route.name)
const hasSubmenuPathList = ['/isystem', '/system'] //
const hasSubMenu = hasSubmenuPathList.some(item => this.$route.path.indexOf(item) == 0)
return hasSubMenu? this.findSubMenus(this.$route.name): []
}
},
watch: {