许静 5 anni fa
parent
commit
ec1ee94781
1 ha cambiato i file con 5 aggiunte e 3 eliminazioni
  1. 5
    3
      src/pages/im/index.js

+ 5
- 3
src/pages/im/index.js Vedi File

@@ -78,7 +78,7 @@ export default class Chat extends Component {
78 78
       const { sendId, sendName, receiverId, receiverName } = this.$router.params
79 79
       const { scene } = Taro.getStorageSync('router')
80 80
 
81
-      
81
+
82 82
       /**
83 83
        * 当 scene ==1014 时,是从服务消息直接进入聊天页面,
84 84
        * 则id为 sendId,反之是为receiverId
@@ -376,8 +376,10 @@ export default class Chat extends Component {
376 376
     socket.sendNotice(payload, res => {
377 377
       console.log('发送成功')
378 378
       this.setState({
379
-        inputText:'',
380
-      })
379
+        inputText: '',
380
+        imageFile: '',
381
+        msgList: list
382
+      }, this.toBottom)
381 383
       this.appendData(payload)
382 384
     })
383 385
   }