perf: 同步代码

Signed-off-by: xiaoxian521 <1923740402@qq.com>
This commit is contained in:
xiaoxian521
2021-11-10 22:19:28 +08:00
parent 8bfbfe5ab1
commit 425a6eb5c3
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;
}
},