소스 검색

fix: botMessage reply date

Dogtiti 1 년 전
부모
커밋
85cdcab850
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      app/store/chat.ts

+ 1 - 0
app/store/chat.ts

@@ -428,6 +428,7 @@ export const useChatStore = createPersistStore(
             botMessage.streaming = false;
             botMessage.streaming = false;
             if (message) {
             if (message) {
               botMessage.content = message;
               botMessage.content = message;
+              botMessage.date = new Date().toLocaleString();
               get().onNewMessage(botMessage, session);
               get().onNewMessage(botMessage, session);
             }
             }
             ChatControllerPool.remove(session.id, botMessage.id);
             ChatControllerPool.remove(session.id, botMessage.id);