优化头像修改
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user