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/incubator-dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new d01b2c4  [Fix-4921][UI] Fix download log get return 404 (#4922)
d01b2c4 is described below

commit d01b2c432e3ee75d8552c90ba5891ddd9fc63e76
Author: JuFeng Li <[email protected]>
AuthorDate: Tue Mar 2 15:19:32 2021 +0800

    [Fix-4921][UI] Fix download log get return 404 (#4922)
    
    
    * fix download log 404
    
    * remove hard code and fix same download problem in downloadFile
    
    Co-authored-by: 李巨丰 <[email protected]>
---
 .../src/js/conf/home/pages/dag/_source/formModel/log.vue                | 2 +-
 .../src/js/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 5eb0a10..81d59d8 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 c91b555..08c9dbe 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
         })
       },

Reply via email to