From 2fd7a16573a358d8482d0c2666e0085d39d4ba20 Mon Sep 17 00:00:00 2001 From: Silent YANG Date: Sun, 27 Oct 2024 14:21:18 +0800 Subject: [PATCH] update --- src/views/idea/firmware/index.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/idea/firmware/index.vue b/src/views/idea/firmware/index.vue index 9d31b65..1e678a9 100644 --- a/src/views/idea/firmware/index.vue +++ b/src/views/idea/firmware/index.vue @@ -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');