Commit 26988b8c by 吴云建

创建会话接口更新

parent 7d6bb058
Showing with 4 additions and 15 deletions
......@@ -422,13 +422,11 @@ export default {
{ commit, dispatch },
params: Parameters<ChatStore.ACTION_CREATE_NEW_CHAT_BY_SERVICE_MAN>[0]
) {
const { id, ImChatId, uniplat_version } = await sdk()
const { imChatId } = await sdk()
.model(params.modelName)
.chat(+params.selectedListId, orgId())
.createChat();
const uniplatId = id.value;
const chatId = Number(ImChatId.value);
const v = uniplat_version.value;
const chatId = Number(imChatId);
await dispatch(ChatStore.ACTION_GET_MY_CHAT_LIST);
commit(ChatStore.MUTATION_SHOW_CHAT, true);
await dispatch(ChatStore.ACTION_SAVE_CURRENT_CHAT_ID_VERSION, chatId);
......@@ -437,23 +435,14 @@ export default {
{ commit, dispatch },
params: Parameters<ChatStore.ACTION_CREATE_NEW_CHAT_BY_CLIENT>[0]
) {
const { id, ImChatId, uniplat_version } = await sdk()
const { imChatId } = await sdk()
.model(params.modelName)
.chat(+params.selectedListId, orgId())
.createChat(true);
const uniplatId = id.value;
const chatId = Number(ImChatId.value);
const v = uniplat_version.value;
const chatId = Number(imChatId);
commit(ChatStore.MUTATION_SHOW_CHAT, true);
await dispatch(ChatStore.ACTION_SAVE_CURRENT_CHAT_ID_VERSION, chatId);
},
// async [ChatStore.ACTION_CREATE_NEW_CHAT_BY_CLIENT_SIDE](
// { commit, dispatch },
// option: {
// customerServiceId?: number | string;
// customerServiceGroupId?: number;
// }
// ) {},
async [ChatStore.ACTION_REGISTER_EVENT]({ dispatch, commit, state }) {
const chatId = state[ChatStore.STATE_CHAT_CURRENT_CHAT_ID];
if (chatId == null) return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment