Commit 31d2e1e4 by panjiangyi

更新sdk

parent 3d4dc045
Showing with 2 additions and 1 deletions
...@@ -5,7 +5,7 @@ import { EmojiService } from "../service/emoji" ...@@ -5,7 +5,7 @@ import { EmojiService } from "../service/emoji"
import tokenManager from "./token" import tokenManager from "./token"
import type { UniplatSdk } from "uniplat-sdk" import type { UniplatSdk } from "uniplat-sdk"
class Chat { class Chat {
private _sdk: () => UniplatSdk private _sdk?: () => UniplatSdk
private _orgId: () => string | number = () => "0" private _orgId: () => string | number = () => "0"
private token!: TokenStringGetter private token!: TokenStringGetter
...@@ -40,6 +40,7 @@ class Chat { ...@@ -40,6 +40,7 @@ class Chat {
} }
public getSdk = () => { public getSdk = () => {
if(this._sdk == null) return
return this._sdk() return this._sdk()
} }
......
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