古茗的莓莓奶麻薯挺好喝 推荐

main
QMZ 1 month ago
parent 7095482306
commit 1db22929d4

@ -89,6 +89,7 @@
//
if (file.raw) {
// URL
this.imageUrl = URL.createObjectURL(file.raw);
}
},

@ -220,10 +220,10 @@
// follow
const followsWithUserInfo = await Promise.all(
response.map(async (follow) => {
const { userid: followUserid } = follow;
const { myfollowid } = follow;
try {
// follow
const userResponse = await axios.get(`/user/info/${id}`);
const userResponse = await axios.get(`/user/info/${myfollowid}`);
const { username, photo } = userResponse;
// follow
@ -233,7 +233,7 @@
photo
};
} catch (userError) {
console.error(`Error fetching user info for follow with userid ${followUserid}:`, userError);
console.error(`Error fetching user info for follow with userid ${myfollowid}:`, userError);
return {
...follow,
username: 'Unknown', //
@ -385,7 +385,7 @@
const { userid } = comment;
try {
//
const userResponse = await axios.get(`/user/info/${id}`);
const userResponse = await axios.get(`/user/info/${userid}`);
const username = userResponse.username; // response.data.username
//

Loading…
Cancel
Save