diff --git a/src/page/index/sidebar/index.vue b/src/page/index/sidebar/index.vue index 7970c9f..1caa4cd 100644 --- a/src/page/index/sidebar/index.vue +++ b/src/page/index/sidebar/index.vue @@ -36,12 +36,14 @@ }; }, created() { - setTimeout(() =>{ - this.menu.map((item,index) =>{ - this.menuArr.push(item.path) - }) - },300) - + console.log(this.tag) + if(this.tag.label == '首页') { + setTimeout(() =>{ + this.menu.map((item,index) =>{ + this.menuArr.push(item.path) + }) + },300) + } this.index.openMenu(); }, computed: { @@ -51,7 +53,6 @@ } }, methods: { - } };