From 70877c8c967a70cb1ab1f1ec074376c26cea30f0 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 16:32:25 +0800 Subject: [PATCH] =?UTF-8?q?feat(ckchat):=20=E6=B7=BB=E5=8A=A0=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E5=85=B3=E9=94=AE=E8=AF=8D=E7=8A=B6=E6=80=81=E5=8F=8A?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在CkChatState接口中添加searchKeyword字段用于存储搜索关键词,并新增setSearchKeyword和clearSearchKeyword方法用于管理搜索状态 --- Cunkebao/src/store/module/ckchat/ckchat.data.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Cunkebao/src/store/module/ckchat/ckchat.data.ts b/Cunkebao/src/store/module/ckchat/ckchat.data.ts index c7d28f66..f9780ab6 100644 --- a/Cunkebao/src/store/module/ckchat/ckchat.data.ts +++ b/Cunkebao/src/store/module/ckchat/ckchat.data.ts @@ -33,6 +33,7 @@ export interface CkUserInfo { export interface CkChatState { userInfo: CkUserInfo | null; isLoggedIn: boolean; + searchKeyword: string; contractList: ContractData[]; chatSessions: any[]; kfUserList: KfUserListData[]; @@ -42,6 +43,8 @@ export interface CkChatState { newContractList: ContactGroupByLabel[]; getContractList: () => ContractData[]; getNewContractList: () => ContactGroupByLabel[]; + setSearchKeyword: (keyword: string) => void; + clearSearchKeyword: () => void; asyncKfSelected: (data: number) => void; asyncWeChatGroup: (data: weChatGroup[]) => void; asyncCountLables: (data: ContactGroupByLabel[]) => void;