diff --git a/src/layout/components/TagsView/index.vue b/src/layout/components/TagsView/index.vue index ec419e76..786b07d0 100644 --- a/src/layout/components/TagsView/index.vue +++ b/src/layout/components/TagsView/index.vue @@ -264,10 +264,7 @@ function closeOtherTags() { } function closeAllTags(view: TagView) { - tagsView.delRightViews(selectedTag.value).then((res: any) => { - if (affixTags.value.some((tag: any) => tag.path === route.path)) { - return; - } + tagsView.delAllViews().then((res: any) => { toLastView(res.visitedViews, view); }); }