IM登录完善,同步好友数据的时候,同步群组数据

This commit is contained in:
2022-02-16 11:19:53 +08:00
parent ad58731a78
commit f9dfd6b08d
4 changed files with 27 additions and 12 deletions

View File

@@ -105,9 +105,11 @@ class userAuth {
openid: authResult.authResult.openid
}).then(res => {
uni.closeAuthView()
store.commit('setToken', res.token_type + ' ' + res.access_token)
store.commit('setToken', res.token_type + ' ' + res
.access_token)
// 在这里登录成功链接IM服务
getImToken().then(res => {
console.log('在这获取IM-TOKEN', res);
im.connect(res.token, res.userInfo)
})
resolve()