提交路径问题

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

View File

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