消息列表展示优化

This commit is contained in:
2022-01-21 17:47:37 +08:00
parent 80cd737e39
commit a30f2f9bd0
6 changed files with 340 additions and 379 deletions

View File

@@ -36,9 +36,11 @@ const setNotifyBadge = (count) => {
* @param {string} token token
* @param {object} userInfo {userId: string, name: string, portraitUrl: string}
*/
const connect = (token, userInfo) => {
const connect = (token, userInfo, callback) => {
RongIMLib.connect(token, res => {
console.log('连接结果', res);
console.log('连接结果', res);
callback(res)
})
store.dispatch('setSenderInfo', userInfo)