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',