fix: affine provider init

This commit is contained in:
alt0 2023-01-10 09:58:46 +08:00
parent 79a760a042
commit 4b39acbba2

View File

@ -28,6 +28,11 @@ export class AffineProvider extends BaseProvider {
constructor({ apis, ...params }: AffineProviderConstructorParams) {
super(params);
this._apis = apis || getApis();
this.init().then(() => {
if (this._apis.token.isLogin) {
this.loadWorkspaces();
}
});
}
override async init() {