diff --git a/src/store/modules/socket.js b/src/store/modules/socket.js index 56145740d..16a91edec 100644 --- a/src/store/modules/socket.js +++ b/src/store/modules/socket.js @@ -120,7 +120,14 @@ const socket = { conversationMessage: {}, controlTransfer: {}, operationModeApplyList: [], // 模式转换消息列表 - conversationGroup: {} // 群组消息 + conversationGroup: { // 群组 + JOIN: {}, // 创建或加入群组 + UPDATE_NAME: {}, // 更新名称 + UPDATE_MEMBER: {}, // 更新群成员 + EXIT: {}, // 退群 + MESSAGE: {}, // 消息 + MESSAGE_STATUS: {} // 消息状态 + } }, getters: { }, @@ -409,7 +416,9 @@ const socket = { }); }, setConversationGroup: (state, message) => { - state.conversationGroup = message; + if (state.conversationGroup[message.messageType] !== undefined) { + state.conversationGroup[message.messageType] = message; + } } }, diff --git a/src/views/newMap/display/newChat/chatDialog.vue b/src/views/newMap/display/newChat/chatDialog.vue index 345c28778..55ffda5c5 100644 --- a/src/views/newMap/display/newChat/chatDialog.vue +++ b/src/views/newMap/display/newChat/chatDialog.vue @@ -39,20 +39,27 @@