diff --git a/utils/index.js b/utils/index.js index b09d9a3..fa56101 100644 --- a/utils/index.js +++ b/utils/index.js @@ -29,6 +29,8 @@ export const hasPermission = (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)); };