Commit aa9cc19f authored by 赵伟庚's avatar 赵伟庚

左侧导航条层级修改

parent 51c5b5a5
......@@ -5,10 +5,10 @@
<div class="container" v-if="pageShow">
<!-- <bg-nav :highlightParentRule="highlightParentRule" :title="nowParent.menuName" width="208px" :list="nowParent.children" v-show="navShow" class="con-nav" /> -->
<bg-nav
v-if="nowParent.children"
v-if="nowParent"
:highlightParentRule="highlightParentRule"
width="208px"
:list="nowParent.children"
:list="nowParent"
v-show="navShow"
class="con-nav" />
<div class="bg-main view">
......@@ -86,7 +86,7 @@ export default {
},
nowParent() {
if (this.pageShow && this.$store.state.userInfo) {
return this.rowPath ? 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