mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-12-04 12:58:24 +08:00
修复节点管理菜单栏路由中没有指定pId时点击没有子路由时控制台报错问题
This commit is contained in:
parent
83a35d2bd0
commit
d10d71366a
@ -91,9 +91,10 @@ export default {
|
||||
},
|
||||
defaultOpenKey() {
|
||||
let keyList = [];
|
||||
// 引导开启且没指定打开某一项菜单时打开系统配置
|
||||
if (this.getGuideFlag && !this.$route.query.pId) {
|
||||
keyList = ['systemConfig']
|
||||
} else {
|
||||
} else if (this.$route.query.pId){ // 打开对应的父级菜单
|
||||
keyList = [this.$route.query.pId]
|
||||
}
|
||||
return keyList
|
||||
|
Loading…
Reference in New Issue
Block a user