基本重构完成
This commit is contained in:
@@ -198,7 +198,9 @@ Page({
|
||||
})
|
||||
.then((data) => {
|
||||
if (data.code === 0) {
|
||||
app.globalData.user = data.data.user
|
||||
// 与 profileedit 同一处坑:/user/update 的响应不含 security.token,
|
||||
// 整替会抹掉本机 token,security 必须保留本地那份
|
||||
app.globalData.user = { ...user, ...data.data.user, security: user.security || {} }
|
||||
wx.showToast({ title: '保存成功', icon: 'success' })
|
||||
} else {
|
||||
wx.showToast({ title: data.msg || '保存失败', icon: 'none' })
|
||||
|
||||
Reference in New Issue
Block a user