Commit a4703394 by 刘敏

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

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