Commit 8e1e4cd8 authored by RuoYi's avatar RuoYi

通用下载完成后删除节点

parent 9fa5c797
......@@ -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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment