feat: 输入框清空的问题

This commit is contained in:
zoujing
2025-08-06 14:16:31 +08:00
parent fe0a36e446
commit af9c3c7c28
2 changed files with 2 additions and 6 deletions

View File

@@ -78,8 +78,6 @@ const sendMessage = () => {
// 否则发送新消息
if (!inputMessage.value.trim()) return;
emit('send', inputMessage.value)
inputMessage.value = ''
emit('update:inputMessage', inputMessage.value)
// 发送后保持焦点(可选)
if (props.holdKeyboard && textareaRef.value) {