Commit d8b28876 by Archer Committed by GitHub

feat: comment (#2697)

parent ba3b3280
...@@ -537,6 +537,7 @@ const ChatBox = ( ...@@ -537,6 +537,7 @@ const ChatBox = (
if (!err?.responseText) { if (!err?.responseText) {
resetInputVal({ text, files }); resetInputVal({ text, files });
// 这里的 newChatList 没包含用户交互输入的内容,所以重置后刚好是正确的。
setChatHistories(newChatList.slice(0, newChatList.length - 2)); setChatHistories(newChatList.slice(0, newChatList.length - 2));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment