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)" >