ui: remove deprecated util global

This commit is contained in:
undefined committed 2025-11-14 04:57:49 +08:00
1 parent d1e47ba9e3
commit 7f7bff9613
23 files changed
+9 -80

No files matched your search

-1
View File
@@ -1,7 +1,6 @@
const lazyModules = {};
const features: Record<string, string | (() => Promise<any>)> = {};
export default async function load(name: string) {
if (window.node_modules[name]) return window.node_modules[name];
if (name === 'echarts') return import('echarts');
if (name === 'moment') return import('moment');
if (!window.lazyloadMetadata?.[`${name}.lazy.js`]) throw new Error(`Module ${name} not found`);