From d2a06b827fdcf4b274c503c25b3c21fd727ccbbc Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 07 三月 2025 10:18:45 +0800
Subject: [PATCH] 文件下载全局修改

---
 src/views/CNAS/resourceDemand/facilitiesEnvironment/component/facilities-environmental-conditions/lightning-protection-detection.vue |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/views/CNAS/resourceDemand/facilitiesEnvironment/component/facilities-environmental-conditions/lightning-protection-detection.vue b/src/views/CNAS/resourceDemand/facilitiesEnvironment/component/facilities-environmental-conditions/lightning-protection-detection.vue
index 48e5b68..71a7c67 100644
--- a/src/views/CNAS/resourceDemand/facilitiesEnvironment/component/facilities-environmental-conditions/lightning-protection-detection.vue
+++ b/src/views/CNAS/resourceDemand/facilitiesEnvironment/component/facilities-environmental-conditions/lightning-protection-detection.vue
@@ -250,9 +250,11 @@
       })
     },
     download(row) {
-      let url = '';
-      url = this.javaApi + '/img/' + row.systemFileName
-      this.$download.saveAs(url, row.fileName)
+      if (!row.systemFileName) {
+        this.$message.warning('鏆傛棤鏂囦欢')
+        return
+      }
+      this.$download.downloadFileFromUrl(row.systemFileName, row.fileName)
     }
   }
 }

--
Gitblit v1.9.3