From fb6c4dbd243a6877ead5674b40b321d65d60a119 Mon Sep 17 00:00:00 2001 From: break60 <790061044@qq.com> Date: Fri, 16 Oct 2020 14:02:38 +0800 Subject: [PATCH] Workflow definition name re-modified and added check --- .../src/js/conf/home/pages/dag/_source/udp/udp.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/udp/udp.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/udp/udp.vue index 4acd550f5f..e6949b33e3 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/udp/udp.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/udp/udp.vue @@ -170,8 +170,14 @@ } // Edit => direct storage - if (this.store.state.dag.name) { + if (this.store.state.dag.name && this.store.state.dag.name===this.name) { _verif() + } else if (this.store.state.dag.name && this.store.state.dag.name!==this.name) { + this.store.dispatch('dag/verifDAGName', this.name).then(res => { + _verif() + }).catch(e => { + this.$message.error(e.msg || '') + }) } else { // New First verify that the name exists this.store.dispatch('dag/verifDAGName', this.name).then(res => {