update: 修改发送消息逻辑,增加发送按钮未禁用时的输入验证
This commit is contained in:
parent
3e44acb508
commit
7f02bd7c9b
|
@ -239,7 +239,7 @@ watch(() => currentMessages.value?.map(msg => msg.respondingType), (newTypes, ol
|
|||
|
||||
// 发送消息时滚动到底部
|
||||
const sendMessage = () => {
|
||||
if (!messageInput.value.trim()) return
|
||||
if (!messageInput.value.trim() && !sendButtonsDisabled.value) return
|
||||
chatStore.sendMessage(messageInput.value)
|
||||
messageInput.value = ''
|
||||
messageInputRef.value.style.height = 'auto'
|
||||
|
|
Loading…
Reference in New Issue