未验证 提交 d79af508 编写于 作者: Y Yichao Yang 提交者: GitHub

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

上级 f27c62a5
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册