修复:与AI聊天或其他特定错误拦截后,发送消息按钮永久失灵的问题
This commit is contained in:
@@ -742,6 +742,7 @@
|
|||||||
container2.appendChild(muteDiv);
|
container2.appendChild(muteDiv);
|
||||||
container2.scrollTop = container2.scrollHeight;
|
container2.scrollTop = container2.scrollHeight;
|
||||||
}
|
}
|
||||||
|
_isSending = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -753,6 +754,7 @@
|
|||||||
const content = formData.get('content').trim();
|
const content = formData.get('content').trim();
|
||||||
if (!content) {
|
if (!content) {
|
||||||
contentInput.focus();
|
contentInput.focus();
|
||||||
|
_isSending = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -762,6 +764,7 @@
|
|||||||
contentInput.value = '';
|
contentInput.value = '';
|
||||||
contentInput.focus();
|
contentInput.focus();
|
||||||
await sendToChatBot(content);
|
await sendToChatBot(content);
|
||||||
|
_isSending = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user