Commit 38e7a3b5 by 杨铁龙

await

parent 05618173
Showing with 3 additions and 3 deletions
......@@ -440,7 +440,7 @@ export default {
const uniplatId = id.value;
const chatId = Number(ImChatId.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);
},
// async [ChatStore.ACTION_CREATE_NEW_CHAT_BY_CLIENT_SIDE](
......@@ -629,7 +629,7 @@ export default {
);
await dispatch(ChatStore.ACTION_SAVE_CURRENT_CHAT_ID_VERSION, firstChat.chat_id);
},
async [ChatStore.ACTION_CHAT_START_RECEPTION](
{ getters, dispatch }
) {
......@@ -644,7 +644,7 @@ export default {
.startChat();
await new Promise((resolve) => setTimeout(resolve, 500));
await dispatch(ChatStore.ACTION_GET_CHAT_MEMBERS);
},
},
async [ChatStore.ACTION_CHAT_FINISH_RECEPTION](
{ 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