From f28dfeb9b44a961cb78dbcc92cc3c3f34e73ceca Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Mon, 19 Feb 2024 10:50:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=96=87=E6=A1=A3=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E6=96=87=E4=BB=B6=E5=90=8D=E7=A7=B0=3F?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/tool/help/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/tool/help/index.vue b/src/views/tool/help/index.vue index 40f72ebd..ae24c2f7 100644 --- a/src/views/tool/help/index.vue +++ b/src/views/tool/help/index.vue @@ -70,7 +70,8 @@ function fnDownload() { fetch(url) .then(response => response.blob()) .then(blob => { - const fileName = url.substring(url.lastIndexOf('/') + 1); + let fileName = url.substring(url.lastIndexOf('/') + 1); + fileName = fileName.split('?')[0]; saveAs(blob, fileName); }) .catch(error => {