mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-05-09 20:19:21 +08:00
fix(runtime:react): update page时出错
This commit is contained in:
parent
58466dbb0a
commit
af3f621424
@ -113,8 +113,9 @@ const operations = {
|
|||||||
updateConfig(root);
|
updateConfig(root);
|
||||||
},
|
},
|
||||||
|
|
||||||
update({ config, root }: UpdateData) {
|
update({ config, root, parentId}: UpdateData) {
|
||||||
replaceChildNode(app.dataSourceManager?.compiledNode(config, undefined, true) || config, root.items);
|
const newNode = app.dataSourceManager?.compiledNode(config, undefined, true) || config;
|
||||||
|
replaceChildNode(newNode, [root], parentId);
|
||||||
updateConfig(cloneDeep(root));
|
updateConfig(cloneDeep(root));
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user