Merge pull request '修正了' (#51) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/51
This commit is contained in:
commit
17e336f0fc
@ -477,7 +477,7 @@
|
|||||||
that.chatRoomService.initialWhenNewMessage(that.whenNewMessage);
|
that.chatRoomService.initialWhenNewMessage(that.whenNewMessage);
|
||||||
//获取当前聊天室数据
|
//获取当前聊天室数据
|
||||||
that.room = that.chatRoomService.room;
|
that.room = that.chatRoomService.room;
|
||||||
that.chatRoomService.whenOnlineUserChange = that.renqu
|
that.chatRoomService.initialWhenOnlineUserChange(that.renqu)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
let shi = 0;
|
let shi = 0;
|
||||||
@ -560,8 +560,8 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
renqu(res){
|
renqu(res){
|
||||||
if(this.room.onlineUsers.users.length > this.renqu){
|
if(res.users.length > this.renqu){
|
||||||
this.renqu = this.room.onlineUsers.users.length
|
this.renqu = res.users.length
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
whenNewMessage (message) {//新消息监听
|
whenNewMessage (message) {//新消息监听
|
||||||
|
Loading…
Reference in New Issue
Block a user