From a29f1065e438145c636376ad1a4704e679e37aeb Mon Sep 17 00:00:00 2001 From: ch Date: Fri, 10 Jun 2022 19:13:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E5=8F=91=E9=80=81?= =?UTF-8?q?=E5=95=86=E5=93=81=E4=B8=8D=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/plugins/msbIm.js | 5 ++++- src/pages/account/message/chat/index.vue | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) 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 -->