瀏覽代碼

fix: fix the problem of tagsview error when loginout

陈凯龙 3 年之前
父節點
當前提交
835d76ae87
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/store/modules/tagsView.ts

+ 2 - 2
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) {