修正了人

This commit is contained in:
luyuan 2020-08-14 11:07:17 +08:00
parent 65c1e2fd63
commit 3713cab533
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3

View File

@ -442,6 +442,7 @@ export default {
//构造chatRoomService
that.chatRoomService.subscribeRoomMessage(room,currentUser)
that.chatRoomService.initialWhenNewMessage(that.whenNewMessage);
taht.chatRoomService.initialWhenOnlineUserChange(that.newpeople)
//获取当前聊天室数据
that.room = that.chatRoomService.room;
console.log(that.room)
@ -461,6 +462,9 @@ export default {
this.chatRoomService.quitRoom();
},
methods:{
newpeople(list){
this.room.onlineUsers = list
},
sendMessage (messageType, content) {//发送消息
if(!this.chatRoomService.status){
uni.showToast({