fix: metadata
This commit is contained in:
@@ -478,6 +478,7 @@ const onChooseAvatar = async (e) => {
|
||||
uni.showLoading({ title: "上传中...", mask: true });
|
||||
try {
|
||||
const imageUrl = await uploadImage(avatarUrl);
|
||||
|
||||
currentAvatar.value = {
|
||||
id: "wechat_" + Date.now(),
|
||||
imageUrl: imageUrl,
|
||||
@@ -485,7 +486,7 @@ const onChooseAvatar = async (e) => {
|
||||
uni.hideLoading();
|
||||
} catch (e) {
|
||||
uni.hideLoading();
|
||||
uni.showToast({ title: "上传失败", icon: "none" });
|
||||
uni.showToast({ title: e || "上传失败", icon: "none" });
|
||||
console.error("Upload avatar error", e);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user