Commit d0a1061c by Sixong.Zhu

type

parent c00baca9
Showing with 5 additions and 3 deletions
...@@ -481,9 +481,11 @@ export default { ...@@ -481,9 +481,11 @@ export default {
{ state, dispatch, getters, commit }, { state, dispatch, getters, commit },
params: Parameters<ChatStore.ACTION_SEND_MESSAGE>[0] params: Parameters<ChatStore.ACTION_SEND_MESSAGE>[0]
) { ) {
const uniplatId = if (Chat.getServiceType() === ServiceType.Backend) {
state[ChatStore.STATE_CHAT_CURRENT_CHAT_UNIPLAT_ID]; if (!state[ChatStore.STATE_CHAT_CURRENT_CHAT_UNIPLAT_ID]) {
if (uniplatId == null) return; return Promise.reject(`No Uniplat Id Found`);
}
}
try { try {
const chat = getters[ChatStore.GETTER_CURRENT_CURRENT_CHAT]; const chat = getters[ChatStore.GETTER_CURRENT_CURRENT_CHAT];
const data = await Chat.getSdk() const data = await Chat.getSdk()
......
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