fix: mini api

This commit is contained in:
zzc
2026-01-28 23:46:14 +08:00
parent 17f5b62ef0
commit fe0a755962

View File

@@ -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) => {