From a4d19c8fc9e9b36b6c318078fcad0cb238bc3011 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:40:42 +0800 Subject: [PATCH] =?UTF-8?q?refactor(ckchat):=20=E5=B0=86getSomeContractLis?= =?UTF-8?q?t=E6=94=B9=E4=B8=BA=E5=90=8C=E6=AD=A5=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E5=B9=B6=E6=B7=BB=E5=8A=A0=E7=B1=BB=E5=9E=8B=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改异步方法为同步方法,提高性能并添加类型注释以增强代码可读性 --- Cunkebao/src/store/module/ckchat/ckchat.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cunkebao/src/store/module/ckchat/ckchat.ts b/Cunkebao/src/store/module/ckchat/ckchat.ts index dfeccf49..3ac0ba7f 100644 --- a/Cunkebao/src/store/module/ckchat/ckchat.ts +++ b/Cunkebao/src/store/module/ckchat/ckchat.ts @@ -236,7 +236,8 @@ export const useCkChatStore = createPersistStore( state.getContractList(); } }, - getSomeContractList: async kfSelected => { + //获取特定联系人 + getSomeContractList: (kfSelected: number) => { const state = useCkChatStore.getState(); return state.contractList.filter( item => item.wechatAccountId === kfSelected,