多个权限校验的BUG

This commit is contained in:
lisheng 2022-07-10 20:12:53 +08:00
parent e57dde4bab
commit 4841a29c29

View File

@ -8,7 +8,7 @@ export function judementSameArr(newArr: unknown[] | string[], oldArr: string[]):
const news = removeDuplicate(newArr);
const olds = removeDuplicate(oldArr);
let count = 0;
const leng = olds.length;
const leng = news.length;
for (let i in olds) {
for (let j in news) {
if (olds[i] === news[j]) count++;