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