Explorar el Código

通用下载完成后删除节点

RuoYi hace 4 años
padre
commit
8e1e4cd8fe
Se han modificado 1 ficheros con 1 adiciones y 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) {
   aLink.setAttribute('download', fileName) // 设置下载文件名称
   document.body.appendChild(aLink)
   aLink.click()
-  document.body.appendChild(aLink)
+  document.body.removeChild(aLink);
 }