mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-09-22 06:49:57 +08:00
fix(editor): 依赖收集后没有同步到dsl中
This commit is contained in:
parent
5242585500
commit
aaf8046c63
@ -388,10 +388,9 @@ export const initServiceEvents = (
|
||||
if (value) {
|
||||
depService.clearIdleTasks();
|
||||
|
||||
await (typeof Worker === 'undefined' ? collectIdle(value.items, true) : depService.collectByWorker(value));
|
||||
|
||||
const dsl = cloneDeep(toRaw(value));
|
||||
|
||||
await (typeof Worker === 'undefined' ? collectIdle(dsl.items, true) : depService.collectByWorker(dsl));
|
||||
|
||||
if (dsl.dataSources && dsl.dataSourceDeps && app?.dataSourceManager) {
|
||||
for (const node of getNodes(getDepNodeIds(dsl.dataSourceDeps), dsl.items)) {
|
||||
updateNode(app.dataSourceManager.compiledNode(node), dsl);
|
||||
|
Loading…
x
Reference in New Issue
Block a user