fix(tag): 修复关闭左侧/右侧标签页时未删除缓存路由问题 (#66)

This commit is contained in:
Ten-K
2021-10-20 15:45:35 +08:00
committed by GitHub
parent 7724d6443e
commit 016948d852
4 changed files with 34 additions and 17 deletions

View File

@@ -46,7 +46,7 @@ export const usePermissionStore = defineStore({
case "delete":
// eslint-disable-next-line no-case-declarations
const delIndex = this.cachePageList.findIndex(v => v === name);
this.cachePageList.splice(delIndex, 1);
delIndex !== -1 && this.cachePageList.splice(delIndex, 1);
break;
}
},