diff --git a/ruoyi-ui/src/utils/zipdownload.js b/ruoyi-ui/src/utils/zipdownload.js index 4142b0982..5ea8ddc67 100644 --- a/ruoyi-ui/src/utils/zipdownload.js +++ b/ruoyi-ui/src/utils/zipdownload.js @@ -18,17 +18,16 @@ export function downLoadZip(str, filename) { resolveBlob(res, mimeMap.zip) }) } -export function downLoadUrl(str, item) { +export function downLoadUrl(str) { var url = baseUrl + str axios({ method: 'get', url: url, - params: { name: item.fileurl }, responseType: 'blob', headers: { 'Authorization': 'Bearer ' + getToken() }, }).then(res => { console.log(res); - downloadFileFun(res, item) + // downloadFileFun(res, item) }) } diff --git a/ruoyi-ui/src/views/benyi/child_files/index.vue b/ruoyi-ui/src/views/benyi/child_files/index.vue index 5d37ca45c..5a853b8b5 100644 --- a/ruoyi-ui/src/views/benyi/child_files/index.vue +++ b/ruoyi-ui/src/views/benyi/child_files/index.vue @@ -67,7 +67,7 @@ export default { }, load() {}, down(row) { - downLoadUrl('/common/download/resource',row); + downLoadUrl(row.fileurl); }, }, };