mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
update postInit api, add nav_logo opt
This commit is contained in:
1 parent
13e3e0ec98
commit
3eb593d134
16 files changed
+137
-47
No files matched your search
@@ -59,6 +59,13 @@ export async function load(call) {
|
||||
}
|
||||
}
|
||||
}
|
||||
for (const postInit of global.Hydro.postInit) {
|
||||
try {
|
||||
await postInit();
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
}
|
||||
pending = [];
|
||||
return await modelSystem.get('server.worker');
|
||||
}
|
||||
@@ -52,6 +52,9 @@ export async function load() {
|
||||
}
|
||||
for (const i of builtinScript) require(`../script/${i}`);
|
||||
await script(pending, fail, active);
|
||||
for (const postInit of global.Hydro.postInit) {
|
||||
await postInit();
|
||||
}
|
||||
pending = [];
|
||||
await server.start();
|
||||
setInterval(() => {
|
||||
|
||||
Reference in new issue
Block a user