作者 RuoYi

通用下载完成后删除节点

@@ -36,5 +36,5 @@ export function resolveBlob(res, mimeType) { @@ -36,5 +36,5 @@ export function resolveBlob(res, mimeType) {
36 aLink.setAttribute('download', fileName) // 设置下载文件名称 36 aLink.setAttribute('download', fileName) // 设置下载文件名称
37 document.body.appendChild(aLink) 37 document.body.appendChild(aLink)
38 aLink.click() 38 aLink.click()
39 - document.body.appendChild(aLink) 39 + document.body.removeChild(aLink);
40 } 40 }