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);