mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: drop system/setting-loaded event
This commit is contained in:
1 parent
48c358c29c
commit
54ae550586
5 files changed
+44
-34
No files matched your search
@@ -286,7 +286,6 @@ export async function apply(ctx: Context) {
|
||||
await buildVersions();
|
||||
});
|
||||
ctx.on('app/i18n/update', buildI18n);
|
||||
ctx.on('system/setting-loaded', buildCodeLangs);
|
||||
ctx.on('system/setting', buildCodeLangs);
|
||||
|
||||
const vite = await createServer({
|
||||
@@ -394,8 +393,8 @@ export async function apply(ctx: Context) {
|
||||
};
|
||||
ctx.on('app/watch/change', triggerHotUpdate);
|
||||
ctx.on('app/watch/unlink', triggerHotUpdate);
|
||||
ctx.on('system/setting-loaded', buildCodeLangs);
|
||||
ctx.on('system/setting', debouncedBuild);
|
||||
ctx.on('app/i18n/update', debouncedBuild);
|
||||
}
|
||||
ctx.inject(['model:setting'], buildCodeLangs);
|
||||
}
|
||||
Reference in new issue
Block a user