mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: loader: add missing inject
This commit is contained in:
5 files changed
+15
-14
No files matched your search
@@ -115,7 +115,7 @@ export async function load(ctx: Context) {
|
||||
await ctx.plugin(ConfigService);
|
||||
await require('../model/system').runConfig();
|
||||
ctx = await new Promise((resolve) => {
|
||||
ctx.inject(['loader'], (c) => {
|
||||
ctx.inject(['loader', 'config'], (c) => {
|
||||
resolve(c);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user