diff --git a/src/views/newMap/jointTrainingNew/chatView/chatBox.vue b/src/views/newMap/jointTrainingNew/chatView/chatBox.vue index 17d556f6d..6f17cb8ff 100644 --- a/src/views/newMap/jointTrainingNew/chatView/chatBox.vue +++ b/src/views/newMap/jointTrainingNew/chatView/chatBox.vue @@ -151,7 +151,7 @@ export default { }, quitCoversition() { quitCoversition(this.group, this.currentCoversition.id).then(res=>{ - this.currentCoversition = null; + this.currentCoversition = {all:undefined, id:null}; this.$refs.chatCoversitionList.initPage(true); this.isHasCoversition = false; }).catch(error=>{ diff --git a/src/views/newMap/jointTrainingNew/chatView/chatContent.vue b/src/views/newMap/jointTrainingNew/chatView/chatContent.vue index 0186ebc77..e1977b6dc 100644 --- a/src/views/newMap/jointTrainingNew/chatView/chatContent.vue +++ b/src/views/newMap/jointTrainingNew/chatView/chatContent.vue @@ -94,7 +94,7 @@ export default { }, methods:{ inintData() { - if (this.coversition) { + if (this.coversition.id) { getSimulationContextListNew(this.$route.query.group, this.coversition.id).then(res=>{ const userId = this.$store.state.user.id; const coversitionList = res.data.map(coversition=>{ diff --git a/src/views/newMap/jointTrainingNew/chatView/chatMemberList.vue b/src/views/newMap/jointTrainingNew/chatView/chatMemberList.vue index 2d8a51de4..284a5f1a1 100644 --- a/src/views/newMap/jointTrainingNew/chatView/chatMemberList.vue +++ b/src/views/newMap/jointTrainingNew/chatView/chatMemberList.vue @@ -59,7 +59,7 @@ export default { methods:{ getSimulationMembers() { this.memberList = []; - if (this.currentCoversition && this.currentCoversition.id) { + if (this.currentCoversition.id) { getSimulationChatMemberNew(this.$route.query.group, this.currentCoversition.id).then(resp => { let lastData = JSON.stringify(resp.data); const roleTypeList = ConstConfig.ConstSelect.roleTypeNew;