diff --git a/src/views/newMap/display/newChat/chatDialog.vue b/src/views/newMap/display/newChat/chatDialog.vue index 0c385f64b..d82ba53bf 100644 --- a/src/views/newMap/display/newChat/chatDialog.vue +++ b/src/views/newMap/display/newChat/chatDialog.vue @@ -66,7 +66,7 @@
工作台
通讯录
- + @@ -162,6 +162,12 @@ export default { } } }, + '$store.state.socket.conversationGroup.JOIN': function(val) { + if (val.messageTips) { + this.$message.success(`${val.messageTips}`); + } + this.getGroupList(); + }, myMemberId() { this.getGroupList(); } @@ -229,7 +235,7 @@ export default { getGroupList(this.groupId).then(res => { console.log(res, '---res--'); this.groupList = res.data; - if (this.groupList && this.groupList[0]) { + if (this.groupList && this.groupList[0] && !this.id) { this.id = this.groupList[0].id; } }).catch(err => { @@ -272,6 +278,7 @@ export default {