Browse Source

2.0.6 fix copy bug (#10940)

* fix copy task bug: when modifying the array type parameter of the task, the parameter of the copied task is also changed (shallow copy is changed to deep copy).

* fix copy task bug: when modifying the array type parameter of the task, the parameter of the copied task is also changed (shallow copy is changed to deep copy).

Co-authored-by: guanh <111>
2.0.7-release
Hissi 2 years ago committed by GitHub
parent
commit
2746f6851d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/canvas/contextMenu.vue

5
dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/canvas/contextMenu.vue

@ -45,6 +45,7 @@
import { mapState, mapActions, mapMutations } from 'vuex'
import { findComponentDownward, uuid } from '@/module/util/'
import MenuItem from './menuItem.vue'
import { cloneDeep } from 'lodash'
export default {
name: 'dag-context-menu',
@ -114,9 +115,9 @@
const targetNode = nodes.find(
(node) => node.id === this.currentTask.code
)
const targetTask = this.tasks.find(
const targetTask = cloneDeep(this.tasks.find(
(task) => task.code === this.currentTask.code
)
))
if (!targetNode || !targetTask) return

Loading…
Cancel
Save