This commit is contained in:
Silent YANG 2024-10-27 14:21:18 +08:00
parent ff938eec8c
commit 2fd7a16573

View file

@ -239,6 +239,7 @@
}
const iDownload = (url: any, name: any) => {
if(name.split('.').reverse()[0] !== 'bin')name += '.bin';
fetch(url).then(e=>e.blob()).then(blob=>{
const url = URL.createObjectURL(blob);
const a = document.createElement('a');