feat(ckchat): 添加根据客服筛选合同列表的功能
This commit is contained in:
@@ -236,6 +236,12 @@ export const useCkChatStore = createPersistStore<CkChatState>(
|
|||||||
state.getContractList();
|
state.getContractList();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
getSomeContractList: async kfSelected => {
|
||||||
|
const state = useCkChatStore.getState();
|
||||||
|
return state.contractList.filter(
|
||||||
|
item => item.wechatAccountId === kfSelected,
|
||||||
|
);
|
||||||
|
},
|
||||||
// 获取联系人列表 - 使用缓存避免无限循环
|
// 获取联系人列表 - 使用缓存避免无限循环
|
||||||
getContractList: (() => {
|
getContractList: (() => {
|
||||||
let cachedResult: any = null;
|
let cachedResult: any = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user