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