fix: mini api
This commit is contained in:
@@ -180,14 +180,17 @@ const fetchList = async (reset = false) => {
|
||||
};
|
||||
|
||||
const changeUserAvatar = async (imageUrl) => {
|
||||
const res = await userAvatarChange(imageUrl)
|
||||
const res = await userAvatarChange(imageUrl);
|
||||
if (res.success) {
|
||||
userStore.setUserInfo({
|
||||
...userStore.userInfo,
|
||||
avatarUrl: imageUrl,
|
||||
});
|
||||
uni.showToast({
|
||||
title: "头像更换成功",
|
||||
icon: "success",
|
||||
});
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
const loadMore = () => {
|
||||
@@ -210,12 +213,8 @@ const goToMake = () => {
|
||||
});
|
||||
};
|
||||
|
||||
const selectAvatar = (item) => {
|
||||
const selectAvatar = async (item) => {
|
||||
currentAvatar.value = item;
|
||||
uni.showToast({
|
||||
title: "已选中",
|
||||
icon: "success",
|
||||
});
|
||||
};
|
||||
|
||||
const formatDate = (dateStr) => {
|
||||
|
||||
Reference in New Issue
Block a user