mirror of
https://github.com/jeecgboot/JeecgBoot.git
synced 2026-03-26 15:23:11 +00:00
Merge pull request #9444 from liaozhiyang/master
@jeecg/aiflow库按需加载判断条件修正
This commit is contained in:
commit
9b1a3fa14b
@ -122,7 +122,7 @@ function dynamicImport(dynamicViewsModules: Record<string, () => Promise<Recorda
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// online/aiflow 本地未找到,尝试从懒加载包中按需加载
|
// online/aiflow 本地未找到,尝试从懒加载包中按需加载
|
||||||
if (component.startsWith('/super/online') || component.startsWith('/super/aiflow')) {
|
if (component.startsWith('/super/online') || component.startsWith('/super/airag')) {
|
||||||
return () => {
|
return () => {
|
||||||
return loadPackageComponent(component).then((factory) => (factory ? factory() : Promise.reject(`组件 ${component} 未找到`)));
|
return loadPackageComponent(component).then((factory) => (factory ? factory() : Promise.reject(`组件 ${component} 未找到`)));
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user