From d01b2c432e3ee75d8552c90ba5891ddd9fc63e76 Mon Sep 17 00:00:00 2001 From: JuFeng Li <920347627@qq.com> Date: Tue, 2 Mar 2021 15:19:32 +0800 Subject: [PATCH] [Fix-4921][UI] Fix download log get return 404 (#4922) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix download log 404 * remove hard code and fix same download problem in downloadFile Co-authored-by: 李巨丰 --- .../src/js/conf/home/pages/dag/_source/formModel/log.vue | 2 +- .../conf/home/pages/resource/pages/file/pages/details/index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/log.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/log.vue index 5eb0a109a..81d59d8b9 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/log.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/log.vue @@ -168,7 +168,7 @@ * Download log */ _downloadLog () { - downloadFile('/log/download-log', { + downloadFile('log/download-log', { taskInstanceId: this.stateId || this.logId }) }, diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/details/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/details/index.vue index c91b55554..08c9dbe3c 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/details/index.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/details/index.vue @@ -87,7 +87,7 @@ this.$router.go(-1) }, _downloadFile () { - downloadFile('/resources/download', { + downloadFile('resources/download', { id: this.$route.params.id }) }, -- GitLab