基本重构完成

This commit is contained in:
lik
2026-10-07 14:55:06 +08:00
parent f655c906f5
commit f0adf77a41
23 changed files with 1284 additions and 685 deletions
+3 -1
View File
@@ -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' })