通用下载完成后删除节点

This commit is contained in:
RuoYi 2021-04-08 13:46:22 +08:00
parent 9fa5c79713
commit 8e1e4cd8fe
1 changed files with 1 additions and 1 deletions

View File

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