用户昵称,头像,本地缓存与更新规则

This commit is contained in:
2022-02-09 09:34:11 +08:00
parent 56c212d9ad
commit fbf9d7db31
6 changed files with 45 additions and 18 deletions

View File

@@ -87,16 +87,12 @@
},
onLoad(e) {
this.targetId = e.targetId
this.conversationType = e.conversationType // 会话类型
this.userInfo = this.$store.getters.userInfo(this.targetId)
console.log(this.userInfo);
// 获取消息列表
this.initMessageList()
uni.setNavigationBarTitle({
title: this.userInfo.name
})
// 获取消息列表
this.initMessageList()
// 监听消息已读状态
uni.$on('onReadReceiptReceived', (data) => {
if (data.targetId == this.targetId) {