From d11c4348b82f34b8146031ccf7690209df6aeeb1 Mon Sep 17 00:00:00 2001 From: zhangqun <179111901@qq.com> Date: Fri, 29 Dec 2023 15:05:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8F=9C=E5=8D=95=E9=BB=98=E8=AE=A4=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E6=97=B6=E5=85=A8=E9=83=A8=E5=B1=95=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/index/sidebar/index.vue | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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: { - } };