Merge pull request #126 from xiaoxian521/fix/tag

fix(tag): the route is not normally closed and the close icon is repeated
This commit is contained in:
啝裳
2021-11-22 20:24:52 +08:00
committed by GitHub

View File

@@ -64,6 +64,7 @@ const dynamicTagView = () => {
}; };
watch([route], () => { watch([route], () => {
activeIndex.value = -1;
dynamicTagView(); dynamicTagView();
}); });
@@ -591,7 +592,7 @@ onBeforeMount(() => {
(index === activeIndex && index !== 0) (index === activeIndex && index !== 0)
" "
class="el-icon-close" class="el-icon-close"
@click="deleteMenu(item)" @click.stop="deleteMenu(item)"
> >
<CloseBold /> <CloseBold />
</el-icon> </el-icon>