【代码优化】review 个人中心的各种

(cherry picked from commit 9a6c40fc4a31c46099ba108226522567b14460bb)
This commit is contained in:
YunaiV
2025-05-14 15:15:27 +08:00
committed by dengqichen
parent fd5cb05b8b
commit b9f811fe7a
@@ -27,6 +27,7 @@ const userStore = useUserStore()
const cropperRef = ref()
const handelUpload = async ({ data }) => {
// TODO @芋艿:去掉这个接口,使用 url 直接上传
const res = await uploadAvatar({ avatarFile: data })
cropperRef.value.close()
userStore.setUserAvatarAction(res.data)