mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-15 09:06:16 -08:00
gif下载失败?
This commit is contained in:
1 parent
b42e9b99c7
commit
bb74e686cf
2 files changed
+6
-10
No files matched your search
@@ -176,9 +176,7 @@ export function downloadImage(url, name) {
|
||||
setStyle(elink, 'display', 'none');
|
||||
elink.href = url;
|
||||
elink.download = name;
|
||||
sleep(100).then(() => {
|
||||
document.body.appendChild(elink);
|
||||
elink.click();
|
||||
document.body.removeChild(elink);
|
||||
});
|
||||
document.body.appendChild(elink);
|
||||
elink.click();
|
||||
document.body.removeChild(elink);
|
||||
}
|
||||
Reference in new issue
Block a user