fix(ckchat): 修复聊天窗口输入框事件处理和类型定义
修复输入框的onKeyPress事件为onKeyDown以更好处理键盘事件 更新Person组件props类型定义以支持weChatGroup类型 将getkfUserList改为异步函数以备后续实现
This commit is contained in:
@@ -27,9 +27,10 @@ export const useCkChatStore = createPersistStore<CkChatState>(
|
||||
// await kfUserService.createManyWithServerId(data);
|
||||
},
|
||||
// 获取客服列表
|
||||
getkfUserList: () => {
|
||||
getkfUserList: async () => {
|
||||
const state = useCkChatStore.getState();
|
||||
return state.kfUserList;
|
||||
// return await kfUserService.findAll();
|
||||
},
|
||||
// 异步设置标签列表
|
||||
asyncCountLables: async (data: ContactGroupByLabel[]) => {
|
||||
|
||||
Reference in New Issue
Block a user