Commit 6890da15 by 胡锦波

1. 报错调整

parent 875bffc1
Showing with 5 additions and 4 deletions
......@@ -540,8 +540,9 @@ export default {
) {
const { imChatId, catalog } = await Chat.getSdk()
.model(params.modelName)
.chat(params.selectedListId, orgId())
.createChat();
.chat(Number(params.selectedListId)
, orgId())
.createChat() as any;
const chatId = +imChatId;
await dispatch(ChatStore.ACTION_GET_MY_CHAT_LIST);
commit(ChatStore.MUTATION_SHOW_CHAT, !params.showByPage);
......@@ -557,7 +558,7 @@ export default {
) {
const { imChatId } = await Chat.getSdk()
.model(params.modelName)
.chat(params.selectedListId, orgId())
.chat(Number(params.selectedListId), orgId())
.createChat(true);
const chatId = +imChatId;
await commit(ChatStore.MUTATION_SHOW_CHAT, true);
......
......@@ -322,7 +322,7 @@ export class Xim {
// xchat-client 2.2.2新增
public setUnRead(chatId: number) {
return this.client?.unreadChat(chatId);
return (this.client as any).unreadChat(chatId);
}
private parseEventListener(...args: any[]): [string, Function] {
......
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