mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-15 18:58:11 +00:00
fix: 存在 curDocumentId 才存储组件
This commit is contained in:
parent
162a715dd8
commit
e8e7010e7e
@ -446,7 +446,9 @@ export function leafWrapper(Comp: types.IBaseRenderer, {
|
|||||||
|
|
||||||
LeafWrapper.displayName = (Comp as any).displayName;
|
LeafWrapper.displayName = (Comp as any).displayName;
|
||||||
|
|
||||||
|
if (curDocumentId) {
|
||||||
cache.component.set(schema.componentName, LeafWrapper);
|
cache.component.set(schema.componentName, LeafWrapper);
|
||||||
|
}
|
||||||
|
|
||||||
return LeafWrapper;
|
return LeafWrapper;
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user