Commit a4703394 by 刘敏

fix:修复从详情打开会话时出错的问题

parent 63aa27fc
Showing with 3 additions and 11 deletions
...@@ -404,15 +404,11 @@ export default { ...@@ -404,15 +404,11 @@ export default {
.chat(+params.selectedListId, orgId()) .chat(+params.selectedListId, orgId())
.createChat(); .createChat();
const uniplatId = id.value; const uniplatId = id.value;
const chatId = ImChatId.value; const chatId = Number(ImChatId.value);
const v = uniplat_version.value; const v = uniplat_version.value;
await dispatch(ChatStore.ACTION_GET_MY_CHAT_LIST); await dispatch(ChatStore.ACTION_GET_MY_CHAT_LIST);
commit(ChatStore.MUTATION_SHOW_CHAT); commit(ChatStore.MUTATION_SHOW_CHAT);
await dispatch(ChatStore.ACTION_SAVE_CURRENT_CHAT_ID_VERSION, { await dispatch(ChatStore.ACTION_SAVE_CURRENT_CHAT_ID_VERSION, chatId);
chatId,
v,
uniplatId
});
}, },
// async [ChatStore.ACTION_CREATE_NEW_CHAT_BY_CLIENT_SIDE]( // async [ChatStore.ACTION_CREATE_NEW_CHAT_BY_CLIENT_SIDE](
// { commit, dispatch }, // { commit, dispatch },
...@@ -568,11 +564,7 @@ export default { ...@@ -568,11 +564,7 @@ export default {
firstChat.business_data.model_name, firstChat.business_data.model_name,
firstChat.business_data.obj_id firstChat.business_data.obj_id
); );
await dispatch(ChatStore.ACTION_SAVE_CURRENT_CHAT_ID_VERSION, { await dispatch(ChatStore.ACTION_SAVE_CURRENT_CHAT_ID_VERSION, firstChat.chat_id);
chatId: firstChat.chat_id,
v: chatInfo.uniplat_version,
uniplatId: chatInfo.uniplatId,
});
}, },
async [ChatStore.ACTION_CHAT_ADD_MEMBERS]( async [ChatStore.ACTION_CHAT_ADD_MEMBERS](
{ 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