fix:修复发送框问题

This commit is contained in:
ViperEkura 2026-04-15 11:12:46 +08:00
parent 2eb0c6bf7a
commit ecdadfd3c6
1 changed files with 3 additions and 2 deletions

View File

@ -218,9 +218,10 @@ const renderMsgContent = (msg) => {
// //
const handleSend = async () => { const handleSend = async () => {
if (!newMessage.value.trim()) return if (!newMessage.value.trim()) return
await sendMessage(newMessage.value) const message = newMessage.value.trim()
newMessage.value = '' newMessage.value = '' //
scrollToBottom() scrollToBottom()
await sendMessage(message)
} }
// //