From 92e9b69348b6d3b5bf15cae15a8787c17a7c5c3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B6=85=E7=BA=A7=E8=80=81=E7=99=BD=E5=85=94?= Date: Tue, 2 Sep 2025 17:40:11 +0800 Subject: [PATCH] =?UTF-8?q?feat(WechatFriends):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E5=8A=9F=E8=83=BD=E5=B9=B6=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E8=81=94=E7=B3=BB=E4=BA=BA=E5=88=97=E8=A1=A8=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增搜索联系人及群组功能,支持本地数据库查询 - 添加无搜索结果时的提示样式 - 优化联系人列表渲染逻辑,区分搜索模式和分组模式 - 统一联系人项展示样式,支持群组标识 --- Cunkebao/src/store/module/ckchat/ckchat.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Cunkebao/src/store/module/ckchat/ckchat.ts b/Cunkebao/src/store/module/ckchat/ckchat.ts index bc490b04..054c4bd5 100644 --- a/Cunkebao/src/store/module/ckchat/ckchat.ts +++ b/Cunkebao/src/store/module/ckchat/ckchat.ts @@ -150,7 +150,10 @@ export const useCkChatStore = createPersistStore( const keyword = state.searchKeyword.toLowerCase(); // 从本地数据库查询联系人数据 - let allContacts: ContractData[] = await contractService.findAll(); + let allContacts: any[] = await contractService.findAll(); + + // 从本地数据库查询群组数据 + let allGroups: any[] = await weChatGroupService.findAll(); // 根据选中的客服筛选联系人 if (state.kfSelected !== 0) { @@ -159,9 +162,6 @@ export const useCkChatStore = createPersistStore( ); } - // 从本地数据库查询群组数据 - let allGroups: weChatGroup[] = await weChatGroupService.findAll(); - // 根据选中的客服筛选群组 if (state.kfSelected !== 0) { allGroups = allGroups.filter(