From 835d76ae87b950106f957976ebc8f6f2e8842ddf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=87=AF=E9=BE=99?= <502431556@qq.com> Date: Wed, 2 Mar 2022 08:46:08 +0800 Subject: [PATCH] fix: fix the problem of tagsview error when loginout --- src/store/modules/tagsView.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/modules/tagsView.ts b/src/store/modules/tagsView.ts index 51cb06c..33da805 100644 --- a/src/store/modules/tagsView.ts +++ b/src/store/modules/tagsView.ts @@ -85,8 +85,8 @@ export const useTagsViewStore = defineStore({ }, // 删除所有tag delAllVisitedViews() { - const affixTags = this.visitedViews.filter((tag) => tag.meta.affix) - this.visitedViews = affixTags + // const affixTags = this.visitedViews.filter((tag) => tag.meta.affix) + this.visitedViews = [] }, // 删除其他 delOthersViews(view: RouteLocationNormalizedLoaded) {