注册后跳回首页/增加用户信息缓存日志
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
+2
View File
@@ -254,11 +254,13 @@ export default {
// 从缓存加载用户信息
loadUserInfo() {
const cached = getCachedUserInfo();
console.log('[index] getCachedUserInfo:', JSON.stringify(cached, null, 2));
if (cached) {
this.userInfo = { ...this.userInfo, ...cached };
} else {
this.userInfo = { nickname: '', phone: '', avatar: '' };
}
console.log('[index] this.userInfo:', JSON.stringify(this.userInfo, null, 2));
},
async fetchProducts() {
this.loading = true;