!30 修复多个权限同时校验的BUG

Merge pull request !30 from LostDeer/auth
This commit is contained in:
lyt-Top 2022-07-10 12:57:39 +00:00 committed by Gitee
commit 134da2bc8c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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++;