From b45b7cd0979a89f28c50643e6b02775fbbde0313 Mon Sep 17 00:00:00 2001
From: admin <15939171744@163.com>
Date: 星期三, 12 二月 2025 10:03:30 +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 bb85ce1..42acd00 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.index);
+      const isBlob = blobValidate(res.data);
       if (isBlob) {
-        const blob = new Blob([res.index])
+        const blob = new Blob([res.data])
         this.saveAs(blob, decodeURIComponent(res.headers['download-filename']))
       } else {
-        this.printErrMsg(res.index);
+        this.printErrMsg(res.data);
       }
     })
   },
@@ -34,12 +34,12 @@
       responseType: 'blob',
       headers: { 'Authorization': 'Bearer ' + getToken() }
     }).then((res) => {
-      const isBlob = blobValidate(res.index);
+      const isBlob = blobValidate(res.data);
       if (isBlob) {
-        const blob = new Blob([res.index])
+        const blob = new Blob([res.data])
         this.saveAs(blob, decodeURIComponent(res.headers['download-filename']))
       } else {
-        this.printErrMsg(res.index);
+        this.printErrMsg(res.data);
       }
     })
   },
@@ -52,12 +52,12 @@
       responseType: 'blob',
       headers: { 'Authorization': 'Bearer ' + getToken() }
     }).then((res) => {
-      const isBlob = blobValidate(res.index);
+      const isBlob = blobValidate(res.data);
       if (isBlob) {
-        const blob = new Blob([res.index], { type: 'application/zip' })
+        const blob = new Blob([res.data], { type: 'application/zip' })
         this.saveAs(blob, name)
       } else {
-        this.printErrMsg(res.index);
+        this.printErrMsg(res.data);
       }
       downloadLoadingInstance.close();
     }).catch((r) => {

--
Gitblit v1.9.3