From 9f385eaf6a1ee253bc24ec624c3435cdafe8c014 Mon Sep 17 00:00:00 2001 From: xsx <825657193@qq.com> Date: Mon, 29 Sep 2025 17:22:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8F=91=E9=80=81=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E4=B8=80=E7=9B=B4=E5=8D=A1=E4=BD=8F=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- im-uniapp/store/chatStore.js | 2 +- im-web/src/store/chatStore.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/im-uniapp/store/chatStore.js b/im-uniapp/store/chatStore.js index 089b337..dd2e46d 100644 --- a/im-uniapp/store/chatStore.js +++ b/im-uniapp/store/chatStore.js @@ -527,7 +527,7 @@ export default defineStore('chatStore', { continue; } if (msgInfo.tmpId == m.tmpId) { - return idx; + return m; } // 如果id比要查询的消息小,说明没有这条消息 if (m.tmpId && m.tmpId < msgInfo.tmpId) { diff --git a/im-web/src/store/chatStore.js b/im-web/src/store/chatStore.js index 7b040d3..5a5d691 100644 --- a/im-web/src/store/chatStore.js +++ b/im-web/src/store/chatStore.js @@ -555,7 +555,7 @@ export default defineStore('chatStore', { continue; } if (msgInfo.tmpId == m.tmpId) { - return idx; + return m; } // 如果id比要查询的消息小,说明没有这条消息 if (m.tmpId && m.tmpId < msgInfo.tmpId) {