From 62b95073a59f3477607e3f902565180cc8c32d62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=85=E5=BF=B5?= Date: Mon, 9 Mar 2026 15:16:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E5=AD=97=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/tabbar.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/tabbar.js b/common/tabbar.js index e4f93ca..870ecbb 100644 --- a/common/tabbar.js +++ b/common/tabbar.js @@ -70,6 +70,8 @@ export function getUserRole() { // 方式2: 从其他存储字段获取(根据实际项目调整) // 可能存储在 userRole、user_role、role 等字段 const role = uni.getStorageSync('userRole') || uni.getStorageSync('role') + role = String(role) + console.log(role) if (role) { return role }