修改文件路径

This commit is contained in:
daihh
2022-06-06 10:48:21 +08:00
parent a0177e2493
commit ef7822ef21

View File

@@ -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('内容文件不存在或已被删除,请与管理员联系');
}
}
}
});