去掉 OakI18n声明
This commit is contained in:
parent
12eb0ed6c5
commit
76aebf4f35
|
|
@ -103,7 +103,7 @@ class Token extends oak_frontend_base_1.Feature {
|
|||
id: token,
|
||||
}
|
||||
}, 'token:getUserId');
|
||||
return result[0].userId;
|
||||
return result[0]?.userId;
|
||||
}
|
||||
}
|
||||
__decorate([
|
||||
|
|
|
|||
|
|
@ -114,6 +114,6 @@ export class Token<ED extends EntityDict, Cxt extends Context<ED>, AD extends Re
|
|||
id: token!,
|
||||
}
|
||||
}, 'token:getUserId');
|
||||
return result[0].userId;
|
||||
return result[0]?.userId;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import { MakeOakComponent, MakeOakPage, I18nWechatMpRuntimeBase } from 'oak-frontend-base';
|
||||
import { MakeOakComponent, MakeOakPage } from 'oak-frontend-base';
|
||||
import { EntityDict } from 'general-app-domain';
|
||||
import { GeneralRuntimeContext } from '../RuntimeContext';
|
||||
import aspectDict from '../aspects';
|
||||
|
|
@ -18,8 +18,5 @@ declare global {
|
|||
ReturnType<typeof initialize>
|
||||
>;
|
||||
const generateNewId: (options?: { timestamp?: boolean }) => Promise<string>;
|
||||
const OakI18n: {
|
||||
i18nInstance: I18nWechatMpRuntimeBase | null;
|
||||
};
|
||||
}
|
||||
export {}
|
||||
Loading…
Reference in New Issue