diff --git a/Cunkebao/src/store/module/ckchat/ckchat.ts b/Cunkebao/src/store/module/ckchat/ckchat.ts index 5c092777..dfeccf49 100644 --- a/Cunkebao/src/store/module/ckchat/ckchat.ts +++ b/Cunkebao/src/store/module/ckchat/ckchat.ts @@ -236,6 +236,12 @@ export const useCkChatStore = createPersistStore( state.getContractList(); } }, + getSomeContractList: async kfSelected => { + const state = useCkChatStore.getState(); + return state.contractList.filter( + item => item.wechatAccountId === kfSelected, + ); + }, // 获取联系人列表 - 使用缓存避免无限循环 getContractList: (() => { let cachedResult: any = null;