Browse Source

通用下载完成后删除节点

RuoYi 4 years ago
parent
commit
8e1e4cd8fe
1 changed files with 1 additions and 1 deletions
  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);
 }