|
|
|
@ -223,7 +223,7 @@
|
|
|
|
|
const { userid: followUserid } = follow;
|
|
|
|
|
try {
|
|
|
|
|
// 获取每个 follow 的用户信息(包括用户名和头像)
|
|
|
|
|
const userResponse = await axios.get(`http://localhost:8082/user/info/${followUserid}/editInfo`);
|
|
|
|
|
const userResponse = await axios.get(`/user/info/${id}`);
|
|
|
|
|
const { username, photo } = userResponse;
|
|
|
|
|
|
|
|
|
|
// 返回包含用户名和头像的 follow 对象
|
|
|
|
@ -385,7 +385,7 @@
|
|
|
|
|
const { userid } = comment;
|
|
|
|
|
try {
|
|
|
|
|
// 获取用户信息
|
|
|
|
|
const userResponse = await axios.get(`/user/info/${userid}/editInfo`);
|
|
|
|
|
const userResponse = await axios.get(`/user/info/${id}`);
|
|
|
|
|
const username = userResponse.username; // 假设用户名在 response.data.username 中
|
|
|
|
|
|
|
|
|
|
// 返回包含用户名的评论对象
|
|
|
|
|