Merge pull request '修正了人' (#192) from xbx into master

Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/192
This commit is contained in:
luyuan 2020-08-14 11:07:52 +08:00
commit a4a9843bdc

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({