注册后跳回首页/增加用户信息缓存日志
Uni-app H5 Deploy (Prod + Staging) / deploy (release) Successful in 45s

This commit is contained in:
kk
2026-07-10 15:13:53 +08:00
parent 71606ebfe5
commit c84c9df5d4
4 changed files with 27 additions and 5 deletions
+3 -1
View File
@@ -72,7 +72,9 @@ export function logout() {
*/
export function getCachedUserInfo() {
try {
return uni.getStorageSync('user_info') || null;
const userInfo = uni.getStorageSync('user_info');
console.log('[auth-guard] getCachedUserInfo raw:', JSON.stringify(userInfo, null, 2));
return userInfo || null;
} catch {
return null;
}