feat(ckchat): 添加搜索关键词状态及相关方法
在CkChatState接口中添加searchKeyword字段用于存储搜索关键词,并新增setSearchKeyword和clearSearchKeyword方法用于管理搜索状态
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user