From 43385780f8a406940c824004fd67c650b348b84a Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Mon, 22 Sep 2025 19:39:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=89=93=E9=96=8B=E5=B0=8D=E8=A9=B1?= =?UTF-8?q?=E5=90=8E=E4=B8=8D=E6=9C=83=E8=87=AA=E5=B7=B1=E6=BB=91=E5=8B=95?= =?UTF-8?q?=E5=88=B0=E5=BA=95=E9=83=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/ui/chat/ChatFragment.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/ui/chat/ChatFragment.tsx b/client/ui/chat/ChatFragment.tsx index 1845f97..5b73c03 100644 --- a/client/ui/chat/ChatFragment.tsx +++ b/client/ui/chat/ChatFragment.tsx @@ -57,7 +57,7 @@ export default function ChatFragment({ target, ...props }: Args) { }) setMessagesList(returnMsgs.concat(messagesList)) - if (page.current == 0 + 1) + if (page.current == 0) setTimeout(() => chatPanelRef.current!.scrollTo({ top: 10000000000, behavior: "smooth", @@ -131,7 +131,7 @@ export default function ChatFragment({ target, ...props }: Args) { paddingTop: "15px", }}> - loadMore()}>加載更多 + ()}>加載更多