会话群调整

This commit is contained in:
dong 2023-04-23 15:58:34 +08:00
parent 50e5e92a05
commit 7dd973c13e
2 changed files with 6 additions and 6 deletions

View File

@ -40,7 +40,7 @@
</div>
<div class="middleMain">
<div v-for="(item, index) in groupList" :key="index" class="row pointer" :class="{active: item.id === id}" @click="groupClick(item)">
<div v-show="false" class="groupIcon"><img :src="getImgUrl(item.imageUrl)" alt=""></div>
<div v-show="item.imageUrl" class="groupIcon"><img :src="getImgUrl(item.imageUrl)" alt=""></div>
<div class="groupInfo">
<div class="text"><b>{{ item.name }}</b></div>
<div class="text">{{ getLastMsg(item.messageList) }}</div>

View File

@ -431,13 +431,13 @@ export default {
};
createGroup(this.groupId, params).then(res => {
console.log(res, 'res');
if (res.code == 200) {
this.$refs.form.resetFields();
this.handleClose();
this.$emit('createGroup');
}
this.$message.success('创建会话群成功!');
}).catch(err => {
console.log(err, 'err');
this.$message.error(`创建会话群失败!${err.message}`);
});
},
uploadLogo() {