diff --git a/src/views/newMap/jointTrainingNew/chatView/chatBox.vue b/src/views/newMap/jointTrainingNew/chatView/chatBox.vue index 3f9cce72c..1ee7ef3ac 100644 --- a/src/views/newMap/jointTrainingNew/chatView/chatBox.vue +++ b/src/views/newMap/jointTrainingNew/chatView/chatBox.vue @@ -612,8 +612,13 @@ export default { }, changeMessageList(data) { this.commonMessageList.push(data.message); + // if (this.conversitionStateMap[data.message.memberId]) { + // this.conversitionStateMap[data.message.memberId].privateMessageList.push(data.message); + // } if (this.conversitionStateMap[data.message.memberId]) { - this.conversitionStateMap[data.message.memberId].privateMessageList.push(data.message); + (this.conversitionStateMap[data.message.memberId].privateMemberList || []).forEach(member => { + this.conversitionStateMap[member.memberId] && this.conversitionStateMap[member.memberId].privateMessageList.push(data.message); + }); } if (this.commonConversation) { this.messageList.push(data.message); diff --git a/src/views/newMap/jointTrainingNew/chatView/chatContent.vue b/src/views/newMap/jointTrainingNew/chatView/chatContent.vue index 1f9991190..07dc89012 100644 --- a/src/views/newMap/jointTrainingNew/chatView/chatContent.vue +++ b/src/views/newMap/jointTrainingNew/chatView/chatContent.vue @@ -164,7 +164,7 @@ export default { display: inline-block; } .userHeader{margin-bottom: 2px;} -.userName{font-size: 12px;display:inline-block;} +.userName{font-size: 12px;display:inline-block;margin-right:10px;} .userChatTime{font-size: 12px;display:inline-block;} .userBubble{ max-width: 200px;