From be66c8bfb96b6de737b01e51f596659729c5e62f Mon Sep 17 00:00:00 2001 From: lrl <742798240@qq.com> Date: Mon, 22 Nov 2021 20:15:37 +0800 Subject: [PATCH] fix(tag): the route is not normally closed and the close icon is repeated --- 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 a2fe1789b..a7e358bd7 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)" >