@ -167,6 +167,8 @@ var app=new Vue({
//发送给客户
chatToUser() {
this.messageContent=this.messageContent.trim("\r\n");
this.messageContent=this.messageContent.replace("\n","");
this.messageContent=this.messageContent.replace("\r\n","");
if(this.messageContent==""||this.messageContent=="\r\n"||this.currentGuest==""){
return;
}
@ -87,6 +87,8 @@ new Vue({
chatToUser:function() {
var messageContent=this.messageContent.trim("\r\n");
messageContent=messageContent.replace("\n","");
messageContent=messageContent.replace("\r\n","");
if(messageContent==""||messageContent=="\r\n"){
this.messageContent="";