Pre Merge pull request !460 from supemeko/N/A

pull/460/MERGE
supemeko 2024-07-29 14:12:53 +00:00 committed by Gitee
commit f1f8cc44ff
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 4 deletions

View File

@ -72,10 +72,7 @@ export const useTagsViewStore = defineStore('tagsView', {
// 删除缓存
delCachedView() {
const route = router.currentRoute.value
const index = findIndex<string>(this.getCachedViews, (v) => v === route.name)
if (index > -1) {
this.cachedViews.delete(this.getCachedViews[index])
}
this.cachedViews.delete(route.name)
},
// 删除所有缓存和tag
delAllViews() {