fix: beforeSubAppLoad emit to async

This commit is contained in:
Chareice 2023-02-24 10:44:23 +08:00
parent b91937552c
commit e08a8735b1

View File

@ -10,7 +10,7 @@ export interface registerAppOptions extends Transactionable {
export class ApplicationModel extends Model {
static async handleAppStart(mainApp: Application, app: Application, options: registerAppOptions) {
await mainApp.emit('beforeSubAppLoad', {
await mainApp.emitAsync('beforeSubAppLoad', {
mainApp,
subApp: app,
});