From 84888ca6da42a94b39eec69264fef988da5ed2f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=AF=BA?= <1253070437@qq.com> Date: Wed, 9 Nov 2022 20:19:36 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=9B=B4=E6=96=B0=E3=80=91=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E7=94=9F=E6=88=90=E4=B8=8B=E8=BD=BD=E5=8E=8B=E7=BC=A9?= =?UTF-8?q?=E5=8C=85=E5=90=8D=E5=AD=97=E4=B9=B1=E7=A0=81=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- snowy-admin-web/src/views/gen/index.vue | 2 +- snowy-admin-web/src/views/gen/steps.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/snowy-admin-web/src/views/gen/index.vue b/snowy-admin-web/src/views/gen/index.vue index ab15aafa..0df80e1e 100644 --- a/snowy-admin-web/src/views/gen/index.vue +++ b/snowy-admin-web/src/views/gen/index.vue @@ -165,7 +165,7 @@ const patt = new RegExp('filename=([^;]+\\.[^\\.;]+);*') const $link = document.createElement("a"); $link.href = URL.createObjectURL(blob); - $link.download = patt.exec(contentDisposition)[1] + $link.download = decodeURIComponent(patt.exec(contentDisposition)[1]) $link.click(); document.body.appendChild($link); document.body.removeChild($link); // 下载完成移除元素 diff --git a/snowy-admin-web/src/views/gen/steps.vue b/snowy-admin-web/src/views/gen/steps.vue index 01ff94ca..bba66f71 100644 --- a/snowy-admin-web/src/views/gen/steps.vue +++ b/snowy-admin-web/src/views/gen/steps.vue @@ -135,7 +135,7 @@ const patt = new RegExp('filename=([^;]+\\.[^\\.;]+);*') const $link = document.createElement("a"); $link.href = URL.createObjectURL(blob); - $link.download = patt.exec(contentDisposition)[1] + $link.download = decodeURIComponent(patt.exec(contentDisposition)[1]) $link.click(); document.body.appendChild($link); document.body.removeChild($link); // 下载完成移除元素