From d75d107059ee81fe517dca1e0ffd4a774563b2e3 Mon Sep 17 00:00:00 2001 From: xsx <825657193@qq.com> Date: Thu, 28 Aug 2025 00:56:42 +0800 Subject: [PATCH] =?UTF-8?q?h5=E6=B6=88=E6=81=AF=E7=BC=93=E5=AD=98=E6=95=B0?= =?UTF-8?q?=E9=87=8F=E8=B0=83=E6=95=B4=E4=B8=BA5000?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- im-uniapp/store/chatStore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/im-uniapp/store/chatStore.js b/im-uniapp/store/chatStore.js index 3321ff6..ad6bfce 100644 --- a/im-uniapp/store/chatStore.js +++ b/im-uniapp/store/chatStore.js @@ -358,7 +358,7 @@ export default defineStore('chatStore', { /** * 由于h5和小程序的stroge只有5m,大约只能存储2w条消息,所以可能需要清理部分历史消息 */ - this.fliterMessage(cacheChats, 10000, 1000); + this.fliterMessage(cacheChats, 5000, 1000); // #endif // 记录热数据索引位置 cacheChats.forEach(chat => chat.hotMinIdx = chat.messages.length);