fix
This commit is contained in:
parent
90fecfc8c9
commit
68f9034042
@ -29,6 +29,8 @@ export const hasPermission = (userPermission) => {
|
|||||||
? userPermission
|
? userPermission
|
||||||
: [userPermission];
|
: [userPermission];
|
||||||
// 当前用户的权限列表
|
// 当前用户的权限列表
|
||||||
let permissionList = Local.get("ruleBtn") ? Local.get("ruleBtn") : [];
|
let permissionList = uni.getStorageSync("ruleBtn")
|
||||||
|
? uni.getStorageSync("ruleBtn")
|
||||||
|
: [];
|
||||||
return userPermissionList.some((e) => permissionList.includes(e));
|
return userPermissionList.some((e) => permissionList.includes(e));
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user