瀏覽代碼

通用下载完成后删除节点

RuoYi 4 年之前
父節點
當前提交
8e1e4cd8fe
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ruoyi-ui/src/utils/zipdownload.js

+ 1 - 1
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);
 }