浏览代码

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;
             if (message) {
               botMessage.content = message;
+              botMessage.date = new Date().toLocaleString();
               get().onNewMessage(botMessage, session);
             }
             ChatControllerPool.remove(session.id, botMessage.id);