From 7095482306e4a12a636658c2d2eb9d161991e59d Mon Sep 17 00:00:00 2001 From: QMZ <1164250597@qq.com> Date: Fri, 20 Dec 2024 11:13:23 +0800 Subject: [PATCH] =?UTF-8?q?jojo=E8=BF=99=E6=98=AF=E6=88=91=E6=9C=80?= =?UTF-8?q?=E5=90=8E=E7=9A=84=E6=B3=A2=E7=BA=B9=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/community/trends.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/community/trends.vue b/src/views/community/trends.vue index 962fea30..32cfa798 100644 --- a/src/views/community/trends.vue +++ b/src/views/community/trends.vue @@ -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 中 // 返回包含用户名的评论对象