From c1fc617b7d6c4094fea44759d98d20d099e1235b Mon Sep 17 00:00:00 2001 From: gengxin Date: Mon, 3 Mar 2025 18:57:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=87=BA=E8=AF=A6=E7=BB=86=E5=AD=A6?= =?UTF-8?q?=E4=B9=A0=E8=AE=B0=E5=BD=95=20-=20loading=20=E6=9B=B4=E6=94=B9?= =?UTF-8?q?=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/zipdownload.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/zipdownload.js b/src/utils/zipdownload.js index 727a9ae9..f3cd5b84 100644 --- a/src/utils/zipdownload.js +++ b/src/utils/zipdownload.js @@ -6,8 +6,8 @@ const mimeMap = { xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', zip: 'application/zip' } -export function downLoadXlsx(str, filename) { - axios({ +export async function downLoadXlsx(str, filename) { + await axios({ method: 'get', url: str, responseType: 'blob',