fix del affect postBeginIndex

This commit is contained in:
2023-03-16 13:04:32 +08:00
parent e81044c4b5
commit 935c1606b7

View File

@@ -327,6 +327,10 @@ export function App() {
)
) {
chatStore.history.splice(i, 1);
chatStore.postBeginIndex = Math.max(
chatStore.postBeginIndex - 1,
0
);
setChatStore({ ...chatStore });
}
}}