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