Browse Source

fix import process definition url error (#6567)

3.0.0/version-upgrade
wangyizhi 3 years ago committed by GitHub
parent
commit
fa102afad0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      dolphinscheduler-ui/src/js/module/components/fileUpdate/definitionUpdate.vue

4
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')

Loading…
Cancel
Save