diff --git a/src/user_pages/edit/index.tsx b/src/user_pages/edit/index.tsx index 75ccbe6..91fde3f 100644 --- a/src/user_pages/edit/index.tsx +++ b/src/user_pages/edit/index.tsx @@ -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",