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 }