From 68f90340427faf18068245b0baeb88e90ce4a504 Mon Sep 17 00:00:00 2001 From: xuminyui <576362016@qq.com> Date: Fri, 18 Oct 2024 10:21:53 +0800 Subject: [PATCH] fix --- utils/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)); };