From 3c0e745766c30c99117aeb988a7f6966770f7cda Mon Sep 17 00:00:00 2001 From: daihh Date: Tue, 18 Oct 2022 17:46:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/zipdownload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/zipdownload.js b/src/utils/zipdownload.js index 67b5e5a2..5ecf4053 100644 --- a/src/utils/zipdownload.js +++ b/src/utils/zipdownload.js @@ -36,5 +36,5 @@ export function resolveBlob(res, mimeType) { aLink.setAttribute('download', fileName) // 设置下载文件名称 document.body.appendChild(aLink) aLink.click() - document.body.appendChild(aLink) + document.body.removeChild(aLink) }