初步完成merchant和admin不同role的展示内容逻辑3

This commit is contained in:
2026-03-12 16:13:13 +08:00
parent a81509e1fc
commit a768597ca2
4 changed files with 8 additions and 16 deletions

View File

@@ -126,9 +126,8 @@ class SupabaseService {
return session.user.getString('id')
}
// 后备:尝试从本地存储获取 (兼容旧逻辑)
const userId = uni.getStorageSync('user_id')
return userId ? userId as string : null
// 移除基于 storage 的后备获取,严格只认当前 Tab 独立 session
return null
} catch (e) {
console.error('获取用户ID失败:', e)
return null