mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-19 11:21:20 -08:00
优化gif demo
This commit is contained in:
1 parent
02c63e55e8
commit
b42e9b99c7
8 files changed
+95
-31
No files matched your search
@@ -176,7 +176,9 @@ export function downloadImage(url, name) {
|
||||
setStyle(elink, 'display', 'none');
|
||||
elink.href = url;
|
||||
elink.download = name;
|
||||
document.body.appendChild(elink);
|
||||
elink.click();
|
||||
document.body.removeChild(elink);
|
||||
sleep(100).then(() => {
|
||||
document.body.appendChild(elink);
|
||||
elink.click();
|
||||
document.body.removeChild(elink);
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user