mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-11-30 03:08:31 +08:00
fix: beforeSubAppLoad emit to async
This commit is contained in:
parent
b91937552c
commit
e08a8735b1
@ -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,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user