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

左侧导航条层级修改

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