Update index.ts
This commit is contained in:
parent
e31ec85442
commit
ca48244efe
1 changed files with 1 additions and 2 deletions
|
@ -17,7 +17,6 @@ function checkSingle(perm: string, reqPerm: string) {
|
||||||
let i = 0;
|
let i = 0;
|
||||||
for (const rp of subRP) {
|
for (const rp of subRP) {
|
||||||
i = subRP.findIndex((e) => e === rp)
|
i = subRP.findIndex((e) => e === rp)
|
||||||
console.log(i, rp, sub[i], subRP.length)
|
|
||||||
if (rp != sub[i]) break;
|
if (rp != sub[i]) break;
|
||||||
else i++;
|
else i++;
|
||||||
}
|
}
|
||||||
|
@ -54,4 +53,4 @@ function checkList(perm: string[], reqPerm: string[]) {
|
||||||
export default {
|
export default {
|
||||||
checkList,
|
checkList,
|
||||||
checkSingle
|
checkSingle
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue