You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by ki...@apache.org on 2021/10/20 10:58:31 UTC
[dolphinscheduler] branch dev updated: fix import process
definition url error (#6567)
This is an automated email from the ASF dual-hosted git repository.
kirs pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new fa102af fix import process definition url error (#6567)
fa102af is described below
commit fa102afad0609b623aa60f1f2452f0007f71e431
Author: wangyizhi <wa...@cmss.chinamobile.com>
AuthorDate: Wed Oct 20 18:58:23 2021 +0800
fix import process definition url error (#6567)
---
.../src/js/module/components/fileUpdate/definitionUpdate.vue | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dolphinscheduler-ui/src/js/module/components/fileUpdate/definitionUpdate.vue b/dolphinscheduler-ui/src/js/module/components/fileUpdate/definitionUpdate.vue
index 6c34c8e..b8b768b 100644
--- a/dolphinscheduler-ui/src/js/module/components/fileUpdate/definitionUpdate.vue
+++ b/dolphinscheduler-ui/src/js/module/components/fileUpdate/definitionUpdate.vue
@@ -137,9 +137,9 @@
return new Promise((resolve, reject) => {
let self = this
let formData = new FormData()
+ const projectCode = this.store.state.dag.projectCode
formData.append('file', this.file)
- formData.append('projectName', this.store.state.dag.projectName)
- io.post('projects/import-definition', res => {
+ io.post(`projects/${projectCode}/process-definition/import`, res => {
this.$message.success(res.msg)
resolve()
self.$emit('onUpdateDefinition')