Browse Source

修改无环bug

pull/2/head
gongzijian 6 years ago
parent
commit
6871af2c0b
  1. 9
      escheduler-ui/src/js/conf/home/pages/dag/_source/plugIn/jsPlumbHandle.js

9
escheduler-ui/src/js/conf/home/pages/dag/_source/plugIn/jsPlumbHandle.js

@ -677,16 +677,11 @@ JSP.prototype.handleEvent = function () {
*/
let recursiveVal
const recursiveTargetarr = (arr, targetId) => {
for (var i in arr) {
for (let i in arr) {
if (arr[i] === targetId) {
recursiveVal = targetId
} else {
let recTargetarrArr = rtTargetarrArr(arr[i])
if (recTargetarrArr.length) {
recursiveTargetarr(recTargetarrArr, targetId)
} else {
return recursiveTargetarr(targetId)
}
recursiveTargetarr(rtTargetarrArr(arr[i]), targetId)
}
}
return recursiveVal

Loading…
Cancel
Save