Commit c50f59d1 by puhui999

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

parent 39106843
...@@ -279,8 +279,9 @@ const handleSendMessage = async (event: any) => { ...@@ -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. 组织发送消息
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment