You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2021/03/15 11:16:47 UTC
[GitHub] [incubator-dolphinscheduler] chengshiwen commented on a change in pull request #5056: [Fix-5055][UI] Fix can not upload file to correct dir
chengshiwen commented on a change in pull request #5056:
URL: https://github.com/apache/incubator-dolphinscheduler/pull/5056#discussion_r594247939
##########
File path: dolphinscheduler-ui/src/js/module/components/fileUpdate/fileChildUpdate.vue
##########
@@ -174,8 +174,8 @@
formData.append('file', this.file)
formData.append('type', this.type)
formData.append('name', this.name)
- formData.append('pid', this.pid)
- formData.append('currentDir', this.currentDir)
+ formData.append('pid', localStore.getItem('pid') || this.id)
+ formData.append('currentDir', localStore.getItem('currentDir') || this.currentDir)
Review comment:
This problem may also appear in `definitionUpdate.vue`, `fileChildReUpdate.vue`, `fileReUpload.vue`, `fileUpdate.vue`, `resourceChildUpdate.vue` and `udfUpdate.vue` under directory `dolphinscheduler-ui/src/js/module/components/fileUpdate`, please check together, thanks a lot!
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org