From bce42bf13c6339787a33e4ca3132495524aa03d8 Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: 星期五, 17 二月 2023 08:54:46 +0800
Subject: [PATCH] 新增监控页面图标显示
---
src/plugins/download.js | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/plugins/download.js b/src/plugins/download.js
index d4eeabd..41b2934 100644
--- a/src/plugins/download.js
+++ b/src/plugins/download.js
@@ -9,7 +9,7 @@
export default {
name(name, isDelete = true) {
- var url = baseURL + "/common/download?fileName=" + encodeURI(name) + "&delete=" + isDelete
+ var url = baseURL + "/common/download?fileName=" + encodeURIComponent(name) + "&delete=" + isDelete
axios({
method: 'get',
url: url,
@@ -19,14 +19,14 @@
const isLogin = await blobValidate(res.data);
if (isLogin) {
const blob = new Blob([res.data])
- this.saveAs(blob, decodeURI(res.headers['download-filename']))
+ this.saveAs(blob, decodeURIComponent(res.headers['download-filename']))
} else {
this.printErrMsg(res.data);
}
})
},
resource(resource) {
- var url = baseURL + "/common/download/resource?resource=" + encodeURI(resource);
+ var url = baseURL + "/common/download/resource?resource=" + encodeURIComponent(resource);
axios({
method: 'get',
url: url,
@@ -36,7 +36,7 @@
const isLogin = await blobValidate(res.data);
if (isLogin) {
const blob = new Blob([res.data])
- this.saveAs(blob, decodeURI(res.headers['download-filename']))
+ this.saveAs(blob, decodeURIComponent(res.headers['download-filename']))
} else {
this.printErrMsg(res.data);
}
--
Gitblit v1.9.3