From 59da085676c1c6d3ba5d595196a10e95c36028cc 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: Mon, 8 Sep 2025 10:39:54 +0800 Subject: [PATCH] =?UTF-8?q?feat(ckchat):=20=E6=B7=BB=E5=8A=A0=E6=A0=B9?= =?UTF-8?q?=E6=8D=AE=E5=AE=A2=E6=9C=8D=E7=AD=9B=E9=80=89=E5=90=88=E5=90=8C?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E7=9A=84=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cunkebao/src/store/module/ckchat/ckchat.ts | 6 ++++++ 1 file changed, 6 insertions(+) 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;