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

main
QMZ 1 month ago
parent 7095482306
commit 1db22929d4

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

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

Loading…
Cancel
Save