会话群调整

This commit is contained in:
dong 2023-04-21 10:12:14 +08:00
parent 3b21f72e38
commit 2d2f3e9fdc
2 changed files with 9 additions and 1 deletions

View File

@ -95,11 +95,19 @@ export default {
},
trainingSwitch() {
return this.$store.state.trainingNew.trainingSwitch;
},
lastMessage() {
return this.messageList[this.messageList.length - 1];
}
},
watch: {
'$store.state.training.domConfig': function(val) {
this.trainingDesign = val.trainingDesign;
},
lastMessage(newVal, oldVal) {
if (newVal.id != oldVal.id) {
this.scrollTop();
}
}
},
mounted() {

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 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>