bayi il y a 2 ans
Parent
commit
c906f1e700
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  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