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