mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-11 02:12:56 +00:00
fix(material): fix rendering is blocked, when the url in the asset fails to load
This commit is contained in:
parent
cf3d7a8642
commit
8b5e2b47c6
@ -153,7 +153,11 @@ export class Editor extends EventEmitter implements IEditor {
|
||||
return;
|
||||
}
|
||||
if (!AssetsCache[exportName] || !npm?.version || AssetsCache[exportName].npm?.version !== npm?.version) {
|
||||
await (new AssetLoader()).load(url);
|
||||
try {
|
||||
await (new AssetLoader()).load(url);
|
||||
} catch (error) {
|
||||
console.error(`${url} load error: `, error);
|
||||
}
|
||||
}
|
||||
AssetsCache[exportName] = component;
|
||||
function setAssetsComponent(component: any, extraNpmInfo: any = {}) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user