Commit 86530afb authored by 张俊's avatar 张俊

部分菜单兼容

parent 2bc269db
......@@ -53,7 +53,7 @@ export default {
},
rowPath(){
if(this.pageShow&&this.$store.state.userInfo){
return this.menuObj[this.$route.path].rowPath
return this.menuObj[this.$route.path]&&this.menuObj[this.$route.path].rowPath
}else{
return ''
}
......@@ -63,7 +63,7 @@ export default {
// console.log(2222222)
// console.log(this.navMenu)
// console.log(this.rowPath)
return this.navMenu[this.rowPath.slice(1,2)]
return this.rowPath?this.navMenu[this.rowPath.slice(1,2)]:''
}else{
return ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment