Skip to content

Commit c50f59d

Browse files
author
puhui999
committed
【缺陷修复】mall: 修复当客服消息为空时按回车键会发送空消息的 bug
1 parent 3910684 commit c50f59d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/views/mall/promotion/kefu/components/KeFuMessageList.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,9 @@ const handleSendMessage = async (event: any) => {
279279
return
280280
}
281281
// 1. 校验消息是否为空
282-
if (isEmpty(unref(message.value))) {
282+
if (isEmpty(unref(message.value)?.trim())) {
283283
messageTool.notifyWarning('请输入消息后再发送哦!')
284+
message.value = ''
284285
return
285286
}
286287
// 2. 组织发送消息

0 commit comments

Comments
 (0)