From cadbe0c6d068d2e231b9e4abc4e92795412f3a8f Mon Sep 17 00:00:00 2001 From: xsx <825657193@qq.com> Date: Thu, 21 Aug 2025 11:02:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9F=A5=E8=AF=A2=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- im-uniapp/store/chatStore.js | 4 ---- im-web/src/store/chatStore.js | 4 ---- 2 files changed, 8 deletions(-) diff --git a/im-uniapp/store/chatStore.js b/im-uniapp/store/chatStore.js index 8ffd431..c0d5dc3 100644 --- a/im-uniapp/store/chatStore.js +++ b/im-uniapp/store/chatStore.js @@ -513,10 +513,6 @@ export default defineStore('chatStore', { if (msgInfo.tmpId == chat.messages[idx].tmpId) { return chat.messages[idx]; } - // 如果id比要查询的消息小,说明没有这条消息 - if (msgInfo.tmpId > chat.messages[idx].tmpId) { - break; - } } } return null; diff --git a/im-web/src/store/chatStore.js b/im-web/src/store/chatStore.js index 96e1dbf..5bf096f 100644 --- a/im-web/src/store/chatStore.js +++ b/im-web/src/store/chatStore.js @@ -538,10 +538,6 @@ export default defineStore('chatStore', { if (msgInfo.tmpId == chat.messages[idx].tmpId) { return chat.messages[idx]; } - // 如果id比要查询的消息小,说明没有这条消息 - if (msgInfo.tmpId > chat.messages[idx].tmpId) { - break; - } } } }