From 7fecb6c750df66c7597acad72d027d114eeb976c Mon Sep 17 00:00:00 2001 From: baoyu <102349094+Bytq@users.noreply.github.com> Date: Thu, 11 Apr 2024 18:01:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=BF=E7=AD=96=E5=BE=81=E6=B1=82=E6=84=8F?= =?UTF-8?q?=E8=A7=81=E6=B5=81=E7=A8=8B=20=E9=99=84=E4=BB=B6=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../policyConsultation/components/fileViewModel.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/policyConsultation/components/fileViewModel.vue b/src/pages/processCenter/pages/creatProcess/policyConsultation/components/fileViewModel.vue index 3688470c7..10703cbc3 100644 --- a/src/pages/processCenter/pages/creatProcess/policyConsultation/components/fileViewModel.vue +++ b/src/pages/processCenter/pages/creatProcess/policyConsultation/components/fileViewModel.vue @@ -46,8 +46,8 @@ this.$preview(attId) }, clickButtonToUpload(file) { - const attId = file.attId - if (attId) { + const attId = file.attId || file.id + if (attId) { window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId } else { this.$message.warning('文件不存在,下载失败')