mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-09-21 21:06:39 +08:00
更正前端权限插件的判断
This commit is contained in:
parent
79fc04d8cb
commit
e7927bb948
@ -20,7 +20,7 @@ const privilege = (value) => {
|
|||||||
if (!userPointsList) {
|
if (!userPointsList) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return _.some(userPointsList, ['apiPerms', value]);
|
return _.some(userPointsList, ['webPerms', value]);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -21,7 +21,7 @@ const privilege = (value: string) => {
|
|||||||
if (!userPointsList) {
|
if (!userPointsList) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return _.some(userPointsList, ['apiPerms', value]);
|
return _.some(userPointsList, ['webPerms', value]);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
Loading…
Reference in New Issue
Block a user