From 1e1bcecb9f61f41d1e48de09cdf0542f08347c7d Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Mon, 22 Nov 2021 20:38:32 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=90=8C=E6=AD=A5=E5=AE=8C=E6=95=B4?= =?UTF-8?q?=E7=89=88=E5=88=86=E6=94=AF=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/tag/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/layout/components/tag/index.vue b/src/layout/components/tag/index.vue index a2fe178..a7e358b 100644 --- a/src/layout/components/tag/index.vue +++ b/src/layout/components/tag/index.vue @@ -64,6 +64,7 @@ const dynamicTagView = () => { }; watch([route], () => { + activeIndex.value = -1; dynamicTagView(); }); @@ -591,7 +592,7 @@ onBeforeMount(() => { (index === activeIndex && index !== 0) " class="el-icon-close" - @click="deleteMenu(item)" + @click.stop="deleteMenu(item)" >