提交路径问题

This commit is contained in:
daihh
2022-06-08 17:09:10 +08:00
parent 5323a44ad5
commit 1d0c0ebe1c
2 changed files with 4 additions and 8 deletions

View File

@@ -120,7 +120,7 @@ export default {
},
//加载页面
loadInitPdf(url) {
if(url && url.indexOf('.pdf')>-1){
//if(url && url.indexOf('.pdf')>-1){
let loadingTask = pdf.createLoadingTask(url);
this.src=loadingTask;
loadingTask.promise.then((pdf) =>{
@@ -134,7 +134,7 @@ export default {
this.$message.error("加载内容失败,请联系管理员");
});
}
//}
},
handleScroll() {

View File

@@ -239,13 +239,9 @@ export default {
if (JSON.stringify(res.result) != '{}') {
this.caseDetail = res.result;
this.getCaseUserDetail();
if(this.caseDetail.filePath){
if(this.caseDetail.filePath){
//this.pdfPath=this.basePath+this.caseDetail.filePath;
this.createPlayUrl(this.caseDetail.filePath);
}else{
this.$message.error('无内容文件,请与管理员联系');
}
}else{
this.$message.error('内容文件不存在或已被删除,请与管理员联系');
}