perf: 同步代码

This commit is contained in:
xiaoxian521
2021-10-20 21:35:21 +08:00
parent 8bfbfe5ab1
commit f96885b48d
5 changed files with 35 additions and 18 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;
}
},