fix: fix the problem of tagsview error when loginout

This commit is contained in:
陈凯龙 2022-03-02 08:46:08 +08:00
parent ebff81777b
commit 835d76ae87
1 changed files with 2 additions and 2 deletions

View File

@ -85,8 +85,8 @@ export const useTagsViewStore = defineStore({
}, },
// 删除所有tag // 删除所有tag
delAllVisitedViews() { delAllVisitedViews() {
const affixTags = this.visitedViews.filter((tag) => tag.meta.affix) // const affixTags = this.visitedViews.filter((tag) => tag.meta.affix)
this.visitedViews = affixTags this.visitedViews = []
}, },
// 删除其他 // 删除其他
delOthersViews(view: RouteLocationNormalizedLoaded) { delOthersViews(view: RouteLocationNormalizedLoaded) {