fix: use current session id to trigger rerender

This commit is contained in:
Dogtiti 2024-11-11 20:30:59 +08:00
parent 38fa3056df
commit 1d14a991ee

View File

@ -2071,6 +2071,6 @@ function _Chat() {
export function Chat() { export function Chat() {
const chatStore = useChatStore(); const chatStore = useChatStore();
const sessionIndex = chatStore.currentSessionIndex; const session = chatStore.currentSession();
return <_Chat key={sessionIndex}></_Chat>; return <_Chat key={session.id}></_Chat>;
} }