fix: 修复更新头像接口参数错误及页面刷新问题
主要修改: - 修复 updateProfileAPI 参数:使用 avatar_meta_id 替代 avatar_url - 头像上传后保存 meta_id 字段用于后续更新 - 添加 meta_id 验证,避免传递空值 - 修复"我的"页面:添加 useDidShow 实现返回时自动刷新 - 显示工号(employee_no)替代用户 ID - 更新项目文档:记录生命周期钩子使用陷阱 技术细节: - src/pages/avatar/index.vue: 添加 tempAvatarMetaId 存储 - src/pages/mine/index.vue: 使用 useDidShow 而非 useShow - docs/lessons-learned.md: 新增"生命周期钩子使用陷阱"章节 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Showing
7 changed files
with
143 additions
and
14 deletions
-
Please register or login to post a comment