mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-12 21:53:48 +08:00
更正前端权限插件的判断
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user