mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-29 20:31:40 +03:00
fix: affine provider init
This commit is contained in:
parent
79a760a042
commit
4b39acbba2
@ -28,6 +28,11 @@ export class AffineProvider extends BaseProvider {
|
|||||||
constructor({ apis, ...params }: AffineProviderConstructorParams) {
|
constructor({ apis, ...params }: AffineProviderConstructorParams) {
|
||||||
super(params);
|
super(params);
|
||||||
this._apis = apis || getApis();
|
this._apis = apis || getApis();
|
||||||
|
this.init().then(() => {
|
||||||
|
if (this._apis.token.isLogin) {
|
||||||
|
this.loadWorkspaces();
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
override async init() {
|
override async init() {
|
||||||
|
Loading…
Reference in New Issue
Block a user