mirror of
https://gitee.com/yiming_chang/vue-pure-admin.git
synced 2024-12-02 11:17:39 +08:00
fix(tag): the route is not normally closed and the close icon is repeated
This commit is contained in:
parent
e26a0f949d
commit
be66c8bfb9
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user