Pre Merge pull request !460 from supemeko/N/A
commit
f1f8cc44ff
|
|
@ -72,10 +72,7 @@ export const useTagsViewStore = defineStore('tagsView', {
|
||||||
// 删除缓存
|
// 删除缓存
|
||||||
delCachedView() {
|
delCachedView() {
|
||||||
const route = router.currentRoute.value
|
const route = router.currentRoute.value
|
||||||
const index = findIndex<string>(this.getCachedViews, (v) => v === route.name)
|
this.cachedViews.delete(route.name)
|
||||||
if (index > -1) {
|
|
||||||
this.cachedViews.delete(this.getCachedViews[index])
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
// 删除所有缓存和tag
|
// 删除所有缓存和tag
|
||||||
delAllViews() {
|
delAllViews() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue