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