优化头像修改

This commit is contained in:
2025-12-06 20:56:02 +08:00
parent 43c8ba3315
commit 5e66a0a84f

View File

@@ -161,7 +161,7 @@ const EditProfilePage: React.FC = () => {
const tempFilePath = res.tempFilePaths[0];
try {
const avatar_url = await UserService.upload_avatar(tempFilePath);
await updateUserInfo({ avatar: avatar_url });
await updateUserInfo({ avatar_url: avatar_url });
Taro.showToast({
title: "头像上传成功",
icon: "success",