Browse Source

Before creating a workflow, clear the canvas

pull/3/MERGE
break60 4 years ago
parent
commit
4d530f9612
  1. 12
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.js

12
dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.js

@ -52,7 +52,9 @@ Dag.prototype.setConfig = function (o) {
*/
Dag.prototype.create = function () {
const self = this
jsPlumb.ready(() => {
let plumbIns = jsPlumb.getInstance()
plumbIns.reset()
plumbIns.ready(() => {
JSP.init({
dag: this.dag,
instance: this.instance,
@ -304,7 +306,9 @@ Dag.prototype.backfill = function (arg) {
locationsValue = dataObject
const self = this
jsPlumb.ready(() => {
let plumbIns = jsPlumb.getInstance()
plumbIns.reset()
plumbIns.ready(() => {
JSP.init({
dag: this.dag,
instance: this.instance,
@ -326,7 +330,9 @@ Dag.prototype.backfill = function (arg) {
})
} else {
const self = this
jsPlumb.ready(() => {
let plumbIns = jsPlumb.getInstance()
plumbIns.reset()
plumbIns.ready(() => {
JSP.init({
dag: this.dag,
instance: this.instance,

Loading…
Cancel
Save