勉强解决

This commit is contained in:
luyuan 2020-08-08 16:14:25 +08:00
parent 9e96eeb575
commit 5abe5620f5
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
2 changed files with 15 additions and 3 deletions

View File

@ -388,7 +388,10 @@ export default {
that.list= res.data.data that.list= res.data.data
} }
}) })
},6 * 1000) that.$forceUpdate();
console.log(that.room)
},60 * 1000)
uni.request({ uni.request({
url:"https://dmmall.sdbairui.com/api/Specialci/livingUserInfo", url:"https://dmmall.sdbairui.com/api/Specialci/livingUserInfo",
data:{ data:{
@ -431,7 +434,7 @@ export default {
that.chatRoomService.initialWhenNewMessage(that.whenNewMessage); that.chatRoomService.initialWhenNewMessage(that.whenNewMessage);
//获取当前聊天室数据 //获取当前聊天室数据
that.room = that.chatRoomService.room; that.room = that.chatRoomService.room;
console.log(that.room)
} }
}) })
} catch (error) { } catch (error) {

View File

@ -833,7 +833,16 @@ IMService.prototype.sendMessages = function (roomId, content) {
//退出聊天室 //退出聊天室
IMService.prototype.quitRoom = function (roomId) { IMService.prototype.quitRoom = function (roomId) {
this.im.disconnect() // this.im.subscribeGroup([0])
// .then(result => {
// console.log('消息订阅成功')
// }).catch(e => {
// console.log(e,'失败')
// })
// this.subscribePresence(0);
this.disconnect()
this.connectIM()
}; };