mirror of
https://gitee.com/myxzgzs/boyue-ui-admin-vue3
synced 2025-08-10 01:12:44 +08:00
【缺陷修复】mall: 修复当客服消息为空时按回车键会发送空消息的 bug
This commit is contained in:
parent
39106843f3
commit
c50f59d181
@ -279,8 +279,9 @@ const handleSendMessage = async (event: any) => {
|
||||
return
|
||||
}
|
||||
// 1. 校验消息是否为空
|
||||
if (isEmpty(unref(message.value))) {
|
||||
if (isEmpty(unref(message.value)?.trim())) {
|
||||
messageTool.notifyWarning('请输入消息后再发送哦!')
|
||||
message.value = ''
|
||||
return
|
||||
}
|
||||
// 2. 组织发送消息
|
||||
|
Loading…
x
Reference in New Issue
Block a user