fix(TagsView): 关闭所有标签无效问题修复

Former-commit-id: 25c28bf9a974fbf221e2f3479339ba2168a0c4fa
This commit is contained in:
郝先瑞
2022-05-25 12:37:13 +08:00
parent 4f0851c6e3
commit ee205e84ec

View File

@@ -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);
});
}