feat: comment (#2697)

This commit is contained in:
Archer
2024-09-13 11:37:32 +08:00
committed by GitHub
parent ba3b3280b4
commit d8b2887625

View File

@@ -537,6 +537,7 @@ const ChatBox = (
if (!err?.responseText) {
resetInputVal({ text, files });
// 这里的 newChatList 没包含用户交互输入的内容,所以重置后刚好是正确的。
setChatHistories(newChatList.slice(0, newChatList.length - 2));
}