feat: 头像上传/修改 + 个人资料连贯设置面板

- 头像:users.avatar 列 + POST /api/auth/avatar(OSS 上传/清除)+ toPublicUser 返回 avatar;
  user store updateAvatar + avatar 计算(自定义优先,ui-avatars 兜底)
- 共享 saveImage 工具(admin 上传与头像复用,消除重复)
- 个人资料布局:单一连贯设置面板(divide-y 分区:基本信息含头像编辑 / 安全设置 / 危险区),
  去掉小卡片堆叠;i18n 头像键
This commit is contained in:
2026-08-06 19:40:41 +08:00
parent f1d2a405f9
commit b9ffcdb874
9 changed files with 306 additions and 137 deletions
+8 -1
View File
@@ -453,7 +453,14 @@
},
"statFavorites": "收藏",
"statComments": "评论",
"statJoined": "加入于"
"statJoined": "加入于",
"avatar": {
"change": "更换头像",
"uploading": "上传中...",
"remove": "移除头像",
"error": "头像更新失败",
"success": "头像已更新"
}
},
"comments": {
"title": "评论",