优化头像修改
This commit is contained in:
@@ -161,7 +161,7 @@ const EditProfilePage: React.FC = () => {
|
|||||||
const tempFilePath = res.tempFilePaths[0];
|
const tempFilePath = res.tempFilePaths[0];
|
||||||
try {
|
try {
|
||||||
const avatar_url = await UserService.upload_avatar(tempFilePath);
|
const avatar_url = await UserService.upload_avatar(tempFilePath);
|
||||||
await updateUserInfo({ avatar: avatar_url });
|
await updateUserInfo({ avatar_url: avatar_url });
|
||||||
Taro.showToast({
|
Taro.showToast({
|
||||||
title: "头像上传成功",
|
title: "头像上传成功",
|
||||||
icon: "success",
|
icon: "success",
|
||||||
|
|||||||
Reference in New Issue
Block a user