Browse Source

[Fix-3077][ui] Fix the edit name duplicated verify (#3346)

pull/3/MERGE
Yichao Yang 4 years ago committed by GitHub
parent
commit
d79af50809
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/udp/udp.vue

15
dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/udp/udp.vue

@ -169,17 +169,12 @@
this.$emit('onUdp')
}
// Edit => direct storage
if (this.store.state.dag.name) {
// verify that the name exists
this.store.dispatch('dag/verifDAGName', this.name).then(res => {
_verif()
} else {
// New First verify that the name exists
this.store.dispatch('dag/verifDAGName', this.name).then(res => {
_verif()
}).catch(e => {
this.$message.error(e.msg || '')
})
}
}).catch(e => {
this.$message.error(e.msg || '')
})
},
/**
* Close the popup

Loading…
Cancel
Save