From ee205e84ec89d581b1a1d858d652612aeb465d8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=9D=E5=85=88=E7=91=9E?= <1490493387@qq.com> Date: Wed, 25 May 2022 12:37:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(TagsView):=20=E5=85=B3=E9=97=AD=E6=89=80?= =?UTF-8?q?=E6=9C=89=E6=A0=87=E7=AD=BE=E6=97=A0=E6=95=88=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: 25c28bf9a974fbf221e2f3479339ba2168a0c4fa --- src/layout/components/TagsView/index.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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); }); }