From 8a06a49aa38782ff1019c1abdd48c5592d31599b Mon Sep 17 00:00:00 2001 From: hdy <1105738590@qq.com> Date: 星期五, 03 一月 2025 20:59:27 +0800 Subject: [PATCH] 采集质量数据信息(拧紧数据) --- billion-ui/src/plugins/download.js | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/billion-ui/src/plugins/download.js b/billion-ui/src/plugins/download.js index 42acd00..bb85ce1 100644 --- a/billion-ui/src/plugins/download.js +++ b/billion-ui/src/plugins/download.js @@ -17,12 +17,12 @@ responseType: 'blob', headers: { 'Authorization': 'Bearer ' + getToken() } }).then((res) => { - const isBlob = blobValidate(res.data); + const isBlob = blobValidate(res.index); if (isBlob) { - const blob = new Blob([res.data]) + const blob = new Blob([res.index]) this.saveAs(blob, decodeURIComponent(res.headers['download-filename'])) } else { - this.printErrMsg(res.data); + this.printErrMsg(res.index); } }) }, @@ -34,12 +34,12 @@ responseType: 'blob', headers: { 'Authorization': 'Bearer ' + getToken() } }).then((res) => { - const isBlob = blobValidate(res.data); + const isBlob = blobValidate(res.index); if (isBlob) { - const blob = new Blob([res.data]) + const blob = new Blob([res.index]) this.saveAs(blob, decodeURIComponent(res.headers['download-filename'])) } else { - this.printErrMsg(res.data); + this.printErrMsg(res.index); } }) }, @@ -52,12 +52,12 @@ responseType: 'blob', headers: { 'Authorization': 'Bearer ' + getToken() } }).then((res) => { - const isBlob = blobValidate(res.data); + const isBlob = blobValidate(res.index); if (isBlob) { - const blob = new Blob([res.data], { type: 'application/zip' }) + const blob = new Blob([res.index], { type: 'application/zip' }) this.saveAs(blob, name) } else { - this.printErrMsg(res.data); + this.printErrMsg(res.index); } downloadLoadingInstance.close(); }).catch((r) => { -- Gitblit v1.9.3