From 399fd8f1b46466fef0d5e8629239d0be7b4eb7fd Mon Sep 17 00:00:00 2001 From: zhanglipeng Date: Fri, 29 Jan 2021 13:10:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/utils/zipdownload.js | 5 ++--- ruoyi-ui/src/views/benyi/child_files/index.vue | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) 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); }, }, };