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(