From 22b4f87232c9cb1e6f49927c8d0e11ec95f51724 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期二, 28 九月 2021 09:32:56 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/dev' into dev --- ruoyi-ui/src/plugins/download.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi-ui/src/plugins/download.js b/ruoyi-ui/src/plugins/download.js index 248ed01..50f664a 100644 --- a/ruoyi-ui/src/plugins/download.js +++ b/ruoyi-ui/src/plugins/download.js @@ -40,7 +40,7 @@ this.saveAs(blob, decodeURI(res.headers['download-filename'])) }) }, - oss(ossId, name) { + oss(ossId) { var url = baseURL + '/system/oss/download/' + ossId axios({ method: 'get', @@ -49,7 +49,7 @@ headers: { 'Authorization': 'Bearer ' + getToken() } }).then(res => { const blob = new Blob([res.data], { type: 'application/octet-stream' }) - this.saveAs(blob, name) + this.saveAs(blob, decodeURI(res.headers['download-filename'])) }) }, zip(url, name) { -- Gitblit v1.9.3