feat: 添加登录失败处理及记录格式化功能

增加登录失败状态处理和重试机制
将记录格式化逻辑提取到工具函数
优化云数据库查询性能
This commit is contained in:
chenglijuan
2026-04-18 22:34:35 +08:00
parent 54556374b1
commit d5478429c0
7 changed files with 138 additions and 86 deletions
+8 -1
View File
@@ -34,12 +34,19 @@ App({
fail: (err) => {
console.error('静默登录失败', err)
this.globalData.isLoggedIn = false
this.globalData.loginFailed = true
// 通知页面登录失败
if (this.loginReadyCallback) {
this.loginReadyCallback(null)
}
}
})
},
globalData: {
userInfo: null,
isLoggedIn: false
isLoggedIn: false,
loginFailed: false
}
})