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/device/component/calibration.vue | 9 +-------- 1 files changed, 1 insertions(+), 8 deletions(-) diff --git a/src/views/CNAS/resourceDemand/device/component/calibration.vue b/src/views/CNAS/resourceDemand/device/component/calibration.vue index 0a83361..10954a3 100644 --- a/src/views/CNAS/resourceDemand/device/component/calibration.vue +++ b/src/views/CNAS/resourceDemand/device/component/calibration.vue @@ -416,14 +416,7 @@ }) }, handleAttachmentClick(row) { - let state = /\.(jpg|jpeg|png|gif)$/i.test(row.systemFileName) - if (state) { - let url = this.javaApi + '/img/' + row.systemFileName; - this.$download.saveAs(url, row.systemFileName) - } else { - const url = this.javaApi + '/word/' + row.systemFileName - this.$download.saveAs(url, row.systemFileName) - } + this.$download.downloadFileFromUrl(row.systemFileName, row.systemFileName) }, //瀵煎嚭 handleDown() { -- Gitblit v1.9.3