From d8b288762514e4c7cf19d65093b05a26c030906a Mon Sep 17 00:00:00 2001 From: Archer <545436317@qq.com> Date: Fri, 13 Sep 2024 11:37:32 +0800 Subject: [PATCH] feat: comment (#2697) --- .../app/src/components/core/chat/ChatContainer/ChatBox/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/app/src/components/core/chat/ChatContainer/ChatBox/index.tsx b/projects/app/src/components/core/chat/ChatContainer/ChatBox/index.tsx index e71931b90..586e529a7 100644 --- a/projects/app/src/components/core/chat/ChatContainer/ChatBox/index.tsx +++ b/projects/app/src/components/core/chat/ChatContainer/ChatBox/index.tsx @@ -537,6 +537,7 @@ const ChatBox = ( if (!err?.responseText) { resetInputVal({ text, files }); + // 这里的 newChatList 没包含用户交互输入的内容,所以重置后刚好是正确的。 setChatHistories(newChatList.slice(0, newChatList.length - 2)); }