替换回车

pull/23/head
taoshihan1991 4 years ago
parent f9b020e43b
commit 7ac8f3ab8d

@ -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="";
return;

Loading…
Cancel
Save