diff --git a/src/common/plugins/msbIm.js b/src/common/plugins/msbIm.js index e098dc6..36c0f4b 100644 --- a/src/common/plugins/msbIm.js +++ b/src/common/plugins/msbIm.js @@ -2,7 +2,7 @@ * @Author: ch * @Date: 2022-05-18 14:54:47 * @LastEditors: ch - * @LastEditTime: 2022-06-10 11:51:45 + * @LastEditTime: 2022-06-10 19:12:35 * @Description: file content */ import { CreateUUID, FormatDate, ToAsyncAwait } from "@/common/utils"; @@ -363,6 +363,9 @@ class MsbIm { createTimeStamp: new Date().getTime(), sendStatus: 'loading', }; + if (typeof msgCtx.payload === 'string') { + msgCtx.payload = JSON.parse(msgCtx.payload) + } // 点发送,立即把消息加入消息列表,标记为发送中状态 curSession.messageList.push(msgCtx); // 超过时间未返回视为发送失败 diff --git a/src/pages/account/message/chat/index.vue b/src/pages/account/message/chat/index.vue index 700f9ce..ef6d0b0 100644 --- a/src/pages/account/message/chat/index.vue +++ b/src/pages/account/message/chat/index.vue @@ -2,7 +2,7 @@ * @Author: ch * @Date: 2022-03-26 14:32:03 * @LastEditors: ch - * @LastEditTime: 2022-06-10 15:00:39 + * @LastEditTime: 2022-06-10 19:09:45 * @Description: file content -->