[Fix][ui] Fix the problem that all pre-tasks are lost after dag reformatting #3823

This commit is contained in:
dashi 2020-09-25 17:51:28 +08:00
parent 3b581455fc
commit 6564e96315

View File

@ -135,10 +135,12 @@ Dag.prototype.backfill = function (arg) {
const dataObject = {}
g.nodes().forEach(function (v) {
const node = g.node(v)
const location = store.state.dag.locations[node.label]
const obj = {}
obj.name = node.label
obj.name = location.name
obj.x = node.x + marginX
obj.y = node.y
obj.targetarr = location.targetarr
dataObject[node.label] = obj
})
jsPlumb.ready(() => {