进入到群会话的时候,更新群信息

This commit is contained in:
2022-02-24 11:52:24 +08:00
parent b8291a4222
commit fb6f5697c7

View File

@@ -119,6 +119,7 @@
initGroupInfo() { initGroupInfo() {
// 获取群信息,成员数量,设置标题 // 获取群信息,成员数量,设置标题
getGroupBase(this.targetId).then(res => { getGroupBase(this.targetId).then(res => {
this.$store.dispatch('updateContact', res)
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: res.name + `(${res.members})` title: res.name + `(${res.members})`
}) })