提交 959286c3 编写于 作者: C chengshiwen

improvement: resovle download url with resolveURL to prevent change of apiPrefix

上级 133b9d84
......@@ -169,7 +169,7 @@
* Download log
*/
_downloadLog () {
downloadFile('/dolphinscheduler/log/download-log', {
downloadFile('log/download-log', {
taskInstanceId: this.stateId || this.logId
})
},
......
......@@ -87,7 +87,7 @@
this.$router.go(-1)
},
_downloadFile () {
downloadFile('/dolphinscheduler/resources/download', {
downloadFile('resources/download', {
id: this.$route.params.id
})
},
......
......@@ -162,7 +162,7 @@
}
},
_downloadFile (item) {
downloadFile('/dolphinscheduler/resources/download', {
downloadFile('resources/download', {
id: item.id
})
},
......
......@@ -163,7 +163,7 @@
}
},
_downloadFile (item) {
downloadFile('/dolphinscheduler/resources/download', {
downloadFile('resources/download', {
id: item.id
})
},
......
......@@ -143,7 +143,7 @@
methods: {
...mapActions('resource', ['deleteResource']),
_downloadFile (item) {
downloadFile('/dolphinscheduler/resources/download', {
downloadFile('resources/download', {
id: item.id
})
},
......
......@@ -144,7 +144,7 @@
methods: {
...mapActions('resource', ['deleteResource']),
_downloadFile (item) {
downloadFile('/dolphinscheduler/resources/download', {
downloadFile('resources/download', {
id: item.id
})
},
......
......@@ -16,12 +16,14 @@
*/
import i18n from '@/module/i18n'
import { resolveURL } from '@/module/io'
/**
* download file
*/
const downloadFile = ($url, $obj) => {
const param = {
url: $url,
url: resolveURL($url),
obj: $obj
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册