From 49fc74be5d4c65d34d29237b05e26a1a0238715e Mon Sep 17 00:00:00 2001
From: 疯狂的狮子Li <15040126243@163.com>
Date: 星期一, 27 九月 2021 21:30:07 +0800
Subject: [PATCH] fix 修复更新问题 导出文件名乱码

---
 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