mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 21:13:50 +00:00
feat: comment (#2697)
This commit is contained in:
@@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user