mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-06 18:37:07 +00:00
资源加载完成后再预览
This commit is contained in:
parent
a3015961ed
commit
2de06763fc
@ -37,7 +37,7 @@ const SamplePreview = ({ editor }: PluginProps) => {
|
|||||||
|
|
||||||
// TODO asset may cause pollution
|
// TODO asset may cause pollution
|
||||||
const assetLoader = new AssetLoader();
|
const assetLoader = new AssetLoader();
|
||||||
assetLoader.load(libraryAsset);
|
await assetLoader.load(libraryAsset);
|
||||||
const components = buildComponents(libraryMap, componentsMap);
|
const components = buildComponents(libraryMap, componentsMap);
|
||||||
console.log('components', components);
|
console.log('components', components);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user