Explorar o código

通用下载完成后删除节点

RuoYi %!s(int64=5) %!d(string=hai) anos
pai
achega
b7b755f0c6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {
36 36
   aLink.setAttribute('download', fileName) // 设置下载文件名称
37 37
   document.body.appendChild(aLink)
38 38
   aLink.click()
39
-  document.body.appendChild(aLink)
39
+  document.body.removeChild(aLink);
40 40
 }