From ae8d12c499079cf95d961bce28f6c677446130b0 Mon Sep 17 00:00:00 2001 From: yaowanxin <3588231647@qq.com> Date: 星期二, 29 七月 2025 10:12:01 +0800 Subject: [PATCH] 增添mqtt设备选项 --- src/views/business/unpass/components/unPassDialog.vue | 11 +---------- 1 files changed, 1 insertions(+), 10 deletions(-) diff --git a/src/views/business/unpass/components/unPassDialog.vue b/src/views/business/unpass/components/unPassDialog.vue index abb940f..c2f06e0 100644 --- a/src/views/business/unpass/components/unPassDialog.vue +++ b/src/views/business/unpass/components/unPassDialog.vue @@ -180,16 +180,7 @@ downFile({ id: row.id, }).then(res => { - if (res.code === 200) { - let url = ''; - if (res.data.type == 1) { - url = this.javaApi + '/img/' + res.data.fileUrl - this.$download.saveAs(url, row.fileName); - } else { - url = this.javaApi + '/word/' + res.data.fileUrl - this.$download.saveAs(url, row.fileName); - } - } + this.$download.saveAs(res.data.fileUrl, row.fileName); }).catch(error => { }) -- Gitblit v1.9.3