From ef7822ef21aecb2539effb8dc5e7b4fd4fcc399d Mon Sep 17 00:00:00 2001 From: daihh Date: Mon, 6 Jun 2022 10:48:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6=E8=B7=AF?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/portal/case/Detail.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/views/portal/case/Detail.vue b/src/views/portal/case/Detail.vue index f6397591..36899399 100644 --- a/src/views/portal/case/Detail.vue +++ b/src/views/portal/case/Detail.vue @@ -98,7 +98,7 @@ export default { }; }, mounted() { - this.pdfPath=this.basePath+'/case/demo.pdf'; + //this.pdfPath=this.basePath+'/case/demo1.pdf'; this.resolveId = this.$route.query.id; if (this.resolveId) { this.getCaseData(); @@ -120,6 +120,12 @@ export default { if (JSON.stringify(res.result) != '{}') { this.caseDetail = res.result; this.getCaseUserDetail(); + if(this.caseDetil.filePath){ + this.pdfPath=this.basePath+this.caseDetil.filePath; + }else{ + this.$message.error('内容文件不存在或已被删除,请与管理员联系'); + } + } } });