1
This commit is contained in:
@@ -91,6 +91,19 @@
|
||||
onLoad() {
|
||||
// /消息模块的请求
|
||||
this.messageIndex()
|
||||
if(this.$store.state.hasLogin){
|
||||
const user = uni.getStorageSync('user_info');
|
||||
console.log(user)
|
||||
this.imService.login(user.member.member_id,user.member.member_nickname,user.member.member_avatar)
|
||||
this.imService.connectIM()
|
||||
let that = this
|
||||
setTimeout(function(){
|
||||
that.imService.disconnect()
|
||||
},1000)
|
||||
setTimeout(function(){
|
||||
that.imService.connectIM()
|
||||
},2000)
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 选中某个复选框时,由checkbox时触发
|
||||
|
||||
Reference in New Issue
Block a user