Commit 3bb0d1c4 by 吴云建

fix

parents 26988b8c 76c7b004
Showing with 3 additions and 3 deletions
...@@ -440,7 +440,7 @@ export default { ...@@ -440,7 +440,7 @@ export default {
.chat(+params.selectedListId, orgId()) .chat(+params.selectedListId, orgId())
.createChat(true); .createChat(true);
const chatId = Number(imChatId); const chatId = Number(imChatId);
commit(ChatStore.MUTATION_SHOW_CHAT, true); await commit(ChatStore.MUTATION_SHOW_CHAT, true);
await dispatch(ChatStore.ACTION_SAVE_CURRENT_CHAT_ID_VERSION, chatId); await dispatch(ChatStore.ACTION_SAVE_CURRENT_CHAT_ID_VERSION, chatId);
}, },
async [ChatStore.ACTION_REGISTER_EVENT]({ dispatch, commit, state }) { async [ChatStore.ACTION_REGISTER_EVENT]({ dispatch, commit, state }) {
...@@ -625,7 +625,7 @@ export default { ...@@ -625,7 +625,7 @@ export default {
); );
await dispatch(ChatStore.ACTION_SAVE_CURRENT_CHAT_ID_VERSION, firstChat.chat_id); await dispatch(ChatStore.ACTION_SAVE_CURRENT_CHAT_ID_VERSION, firstChat.chat_id);
}, },
async [ChatStore.ACTION_CHAT_START_RECEPTION]( async [ChatStore.ACTION_CHAT_START_RECEPTION](
{ getters, dispatch } { getters, dispatch }
) { ) {
...@@ -640,7 +640,7 @@ export default { ...@@ -640,7 +640,7 @@ export default {
.startChat(); .startChat();
await new Promise((resolve) => setTimeout(resolve, 500)); await new Promise((resolve) => setTimeout(resolve, 500));
await dispatch(ChatStore.ACTION_GET_CHAT_MEMBERS); await dispatch(ChatStore.ACTION_GET_CHAT_MEMBERS);
}, },
async [ChatStore.ACTION_CHAT_FINISH_RECEPTION]( async [ChatStore.ACTION_CHAT_FINISH_RECEPTION](
{ getters, dispatch } { getters, dispatch }
) { ) {
......
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