Pre Merge pull request !460 from supemeko/N/A
commit
f1f8cc44ff
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue