fix: 打開對話后不會自己滑動到底部

This commit is contained in:
CrescentLeaf
2025-09-22 19:39:53 +08:00
parent 791102c034
commit 43385780f8

View File

@@ -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",
}}>
<mdui-button variant="text" onClick={() => loadMore()}></mdui-button>
<mdui-button variant="text" onClick={() => ()}></mdui-button>
</div>
<MessageContainer style={{
paddingTop: "15px",