mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 20:06:44 +08:00
修改文件路径
This commit is contained in:
@@ -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('内容文件不存在或已被删除,请与管理员联系');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user