From 6f7ec6ac87392c2c879356aae76785339f77ec1c Mon Sep 17 00:00:00 2001 From: jmal Date: Wed, 9 Feb 2022 16:07:46 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=EF=BC=9A=E8=AE=BF=E9=97=AE?= =?UTF-8?q?=E7=99=BD=E5=B1=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 2 +- src/utils/file-config.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index 374c89a..7f1d6aa 100644 --- a/public/index.html +++ b/public/index.html @@ -11,7 +11,7 @@ - + diff --git a/src/utils/file-config.js b/src/utils/file-config.js index 52b3d6a..0fa85e4 100644 --- a/src/utils/file-config.js +++ b/src/utils/file-config.js @@ -27,6 +27,7 @@ export default { // 下载文件 download: function(username, file, token) { fileApi.isAllowDownload().then(() => { + encodeURI() let url = `${this.baseUrl}/file/${username}${file.path}${encodeURIComponent(file.name)}?jmal-token=${token}&o=download` window.open(url, '_self') })