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()}>加載更多 + ()}>加載更多