Commit 0452b288 by Sixong.Zhu

update

parent 0360c5dc
Showing with 12 additions and 5 deletions
...@@ -946,11 +946,18 @@ export default { ...@@ -946,11 +946,18 @@ export default {
) { ) {
return Promise.reject(); return Promise.reject();
} }
return await Chat.getSdk() return new Promise<void>((resolve, reject) => {
.model(currentChat.model_name) Chat.getSdk()
.chat(currentChat.obj_id, orgId()) .model(currentChat.model_name)
.startChat() .chat(currentChat.obj_id, orgId())
.finally(() => dispatch(ChatStore.ACTION_GET_CHAT_MEMBERS)); .startChat()
.catch(reject)
.finally(() =>
dispatch(ChatStore.ACTION_GET_CHAT_MEMBERS)
.then(resolve)
.catch(reject)
);
});
}, },
async [ChatStore.ACTION_CHAT_FINISH_RECEPTION]({ getters, dispatch }) { async [ChatStore.ACTION_CHAT_FINISH_RECEPTION]({ getters, dispatch }) {
const currentChat = getters[ const currentChat = getters[
......
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