未验证 提交 60bf3f85 编写于 作者: X xingchun-chen 提交者: GitHub

Merge pull request #3824 from elonlo/bugfix-dag-reformat-miss-pretask

[Fix][ui] Fix the problem that all pre-tasks are lost after dag refor…
...@@ -135,10 +135,12 @@ Dag.prototype.backfill = function (arg) { ...@@ -135,10 +135,12 @@ Dag.prototype.backfill = function (arg) {
const dataObject = {} const dataObject = {}
g.nodes().forEach(function (v) { g.nodes().forEach(function (v) {
const node = g.node(v) const node = g.node(v)
const location = store.state.dag.locations[node.label]
const obj = {} const obj = {}
obj.name = node.label obj.name = location.name
obj.x = node.x + marginX obj.x = node.x + marginX
obj.y = node.y obj.y = node.y
obj.targetarr = location.targetarr
dataObject[node.label] = obj dataObject[node.label] = obj
}) })
jsPlumb.ready(() => { jsPlumb.ready(() => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册