bayi hace 2 años
padre
commit
c906f1e700
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      pages/chat/index.js

+ 5 - 1
pages/chat/index.js

@@ -7,7 +7,11 @@ Page({
   onLoad(options) {
 
   },
-  sendReply() {},
+  sendReply() {
+    if (!this.data.value) {
+      return
+    }
+  },
   bindKeyInput(e) {
     this.setData({
       value: e.detail.value