Skip to content

Commit

Permalink
fix: fix wrap app
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 committed May 1, 2020
1 parent 31d4db7 commit c16ea0b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/midway-web/src/loader/webLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ export class MidwayWebLoader extends EggLoader {
return this.options.logger;
});
// register app
this.containerLoader.registerHook(APPLICATION_KEY, this.app);
this.containerLoader.registerHook(APPLICATION_KEY, () => {
return this.app;
});
}

// loadPlugin -> loadConfig -> afterLoadConfig
Expand Down

0 comments on commit c16ea0b

Please sign in to comment.