From a8b22d1300a821409c7cbb7283703f7596e696e6 Mon Sep 17 00:00:00 2001 From: educoder_weapp Date: Fri, 25 Oct 2019 09:28:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/classroom/classroom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/classroom/classroom.js b/pages/classroom/classroom.js index 12d6276..e1db95e 100644 --- a/pages/classroom/classroom.js +++ b/pages/classroom/classroom.js @@ -67,7 +67,7 @@ Page({ }, send_message:function(event){ let {message_text} = this.data; - if(message.trim()==""){return;} + if(message_text.trim()==""){return;} message = new Message({ text: message_text, class: this.class,