xbx #210

Merged
theluyuan merged 6 commits from xbx into master 2020-08-15 07:48:12 +00:00
Showing only changes of commit 7d13fc8e85 - Show all commits

View File

@ -445,6 +445,7 @@ export default {
that.room = that.chatRoomService.room; that.room = that.chatRoomService.room;
that.chatRoomService.initialWhenOnlineUserChange(that.newpeople) that.chatRoomService.initialWhenOnlineUserChange(that.newpeople)
that.chatRoomService.initialWhenNewMessage(that.whenNewMessage); that.chatRoomService.initialWhenNewMessage(that.whenNewMessage);
this.$forceUpdate();
console.log(that.room) console.log(that.room)
} }
}) })
@ -467,6 +468,7 @@ export default {
}, },
newpeople(list){ newpeople(list){
this.room.onlineUsers = list this.room.onlineUsers = list
console.log(list.users.length)
this.$forceUpdate(); this.$forceUpdate();
}, },
sendMessage (messageType, content) {//发送消息 sendMessage (messageType, content) {//发送消息