修复节点管理菜单栏路由中没有指定pId时点击没有子路由时控制台报错问题

This commit is contained in:
Miracle 2021-08-01 00:24:33 +08:00
parent 83a35d2bd0
commit d10d71366a

View File

@ -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