【缺陷修复】mall: 修复当客服消息为空时按回车键会发送空消息的 bug

This commit is contained in:
puhui999 2025-01-22 18:11:02 +08:00
parent 39106843f3
commit c50f59d181

View File

@ -279,8 +279,9 @@ const handleSendMessage = async (event: any) => {
return return
} }
// 1. // 1.
if (isEmpty(unref(message.value))) { if (isEmpty(unref(message.value)?.trim())) {
messageTool.notifyWarning('请输入消息后再发送哦!') messageTool.notifyWarning('请输入消息后再发送哦!')
message.value = ''
return return
} }
// 2. // 2.