更正前端权限插件的判断

This commit is contained in:
zhoumingfa 2025-04-08 19:52:47 +08:00
parent 79fc04d8cb
commit e7927bb948
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ const privilege = (value) => {
if (!userPointsList) {
return false;
}
return _.some(userPointsList, ['apiPerms', value]);
return _.some(userPointsList, ['webPerms', value]);
};
export default {

View File

@ -21,7 +21,7 @@ const privilege = (value: string) => {
if (!userPointsList) {
return false;
}
return _.some(userPointsList, ['apiPerms', value]);
return _.some(userPointsList, ['webPerms', value]);
};
export default {