diff --git a/ruoyi-ui/src/utils/zipdownload.js b/ruoyi-ui/src/utils/zipdownload.js index 3a8681468..ac2745bca 100644 --- a/ruoyi-ui/src/utils/zipdownload.js +++ b/ruoyi-ui/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); }