mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 03:16:42 +08:00
提交路径问题
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -240,12 +240,8 @@ export default {
|
||||
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('无内容文件,请与管理员联系');
|
||||
}
|
||||
//this.pdfPath=this.basePath+this.caseDetail.filePath;
|
||||
this.createPlayUrl(this.caseDetail.filePath);
|
||||
}else{
|
||||
this.$message.error('内容文件不存在或已被删除,请与管理员联系');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user