【缺陷修复】mall: 修复当客服消息为空时按回车键会发送空消息的 bug
							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…
	
		Reference in New Issue