feat: 接口错误处理增强,统一打印并展示后端错误信息
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
85523109f6
commit
8d69249147
@@ -32,6 +32,7 @@ Page({
|
||||
wx.reLaunch({ url: '/pages/supplementPersonal/supplementPersonal' })
|
||||
}
|
||||
}).catch((err) => {
|
||||
console.error('[login] 登录失败:', err)
|
||||
wx.showToast({ title: err.msg || '登录失败,请重试', icon: 'none' })
|
||||
}).finally(() => {
|
||||
this.setData({ loading: false })
|
||||
|
||||
Reference in New Issue
Block a user