刷新按钮同样重置页数

This commit is contained in:
CrescentLeaf
2025-11-30 01:45:16 +08:00
parent 3f9ce06ed6
commit 4b5f0bcdd6

View File

@@ -378,7 +378,10 @@ export default function ChatFragment({ target, showReturnButton, onReturnButtonC
<div style={{ <div style={{
flexGrow: '1', flexGrow: '1',
}}></div> }}></div>
<mdui-button-icon icon="refresh" onClick={() => getChatInfoAndInit()} style={{ <mdui-button-icon icon="refresh" onClick={() => {
page.current = 0
getChatInfoAndInit()
}} style={{
alignSelf: 'center', alignSelf: 'center',
marginLeft: '5px', marginLeft: '5px',
marginRight: '5px', marginRight: '5px',