From 3b135ba57860cf346e4295f371dacf3fc85fa2b5 Mon Sep 17 00:00:00 2001 From: xuminyui <576362016@qq.com> Date: Mon, 21 Oct 2024 15:13:59 +0800 Subject: [PATCH] fix --- utils/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils/index.js b/utils/index.js index fa56101..1089879 100644 --- a/utils/index.js +++ b/utils/index.js @@ -32,5 +32,9 @@ export const hasPermission = (userPermission) => { let permissionList = uni.getStorageSync("ruleBtn") ? uni.getStorageSync("ruleBtn") : []; + console.log( + "jjajaj", + userPermissionList.some((e) => permissionList.includes(e)) + ); return userPermissionList.some((e) => permissionList.includes(e)); };