fix: hot trend, thread-detail
Change-Id: Id75946e6778134a4c1703508603b27cea23013d8
diff --git "a/src/app/community/thread-detail/\133threadId\135/page.tsx" "b/src/app/community/thread-detail/\133threadId\135/page.tsx"
index 89ae1e8..f998f64 100644
--- "a/src/app/community/thread-detail/\133threadId\135/page.tsx"
+++ "b/src/app/community/thread-detail/\133threadId\135/page.tsx"
@@ -101,7 +101,12 @@
const fetchThreadInfo = async () => {
try {
- const { data } = await axios.get(process.env.PUBLIC_URL + `/thread?threadId=${threadId}`);
+ const { data } = await axios.get(process.env.PUBLIC_URL + `/thread`, {
+ params: {
+ threadId,
+ userId: 22301145
+ }
+ });
setThreadInfo(data);
setTotalComments(data.commentNumber);
} catch (err) {
@@ -110,6 +115,7 @@
}
};
+
// 获取发帖人
useEffect(() => {
if (!threadInfo) return;