Commit 38e7a3b5 by 杨铁龙

await

parent 05618173
Showing with 3 additions and 3 deletions
...@@ -440,7 +440,7 @@ export default { ...@@ -440,7 +440,7 @@ export default {
const uniplatId = id.value; const uniplatId = id.value;
const chatId = Number(ImChatId.value); const chatId = Number(ImChatId.value);
const v = uniplat_version.value; const v = uniplat_version.value;
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_CREATE_NEW_CHAT_BY_CLIENT_SIDE]( // async [ChatStore.ACTION_CREATE_NEW_CHAT_BY_CLIENT_SIDE](
...@@ -629,7 +629,7 @@ export default { ...@@ -629,7 +629,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 }
) { ) {
...@@ -644,7 +644,7 @@ export default { ...@@ -644,7 +644,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