From b26e341cabbb5bf9db6e1026af1e381cabc005a9 Mon Sep 17 00:00:00 2001 From: ch Date: Tue, 14 Jun 2022 17:22:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=8F=91=E9=80=81=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E6=97=B6=E6=98=BE=E7=A4=BA=E5=88=B0=E4=BC=9A=E8=AF=9D=E6=9C=80?= =?UTF-8?q?=E5=90=8E=E4=B8=80=E6=9D=A1=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/msb-im.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/msb-im.js b/src/utils/msb-im.js index 3593897..c00f9be 100644 --- a/src/utils/msb-im.js +++ b/src/utils/msb-im.js @@ -2,7 +2,7 @@ * @Author: ch * @Date: 2022-05-18 14:54:47 * @LastEditors: ch - * @LastEditTime: 2022-06-14 16:00:12 + * @LastEditTime: 2022-06-14 17:20:50 * @Description: file content */ import '@/utils/poto-req'; @@ -382,6 +382,7 @@ class MsbIm { msgCtx.payload = JSON.parse(msgCtx.payload); } // 点发送,立即把消息加入消息列表,标记为发送中状态 + curSession.lastMessage = msgCtx; curSession.messageList.push(msgCtx); this.setSessionData(this.sessionData); @@ -400,6 +401,7 @@ class MsbIm { } } let newData = [...this.sessionData]; + curSession.lastMessage = msgCtx; newData[index] = curSession; this.setSessionData(newData); if (error) {