Revert "Merge remote-tracking branch 'origin/master'"

This reverts commit 9e16ad6913, reversing
changes made to 4b3b6cdf16.
This commit is contained in:
yujicun
2023-03-17 17:29:37 +08:00
parent 9e16ad6913
commit f0f86482ac
6 changed files with 53 additions and 62 deletions

View File

@@ -863,20 +863,21 @@
// console.log(con,'con');
this.playerBoxShow=false;
if(con.contentType==40){
//如果是文档需要再次加载pdf,之所以不直接判断 con.contentRefId 是为了兼容一期老版本的
//如果是文档需要再次加载pdf
if(con.content!='' && con.content.indexOf('.pdf')==-1){
// 先置空,否则会有延迟
con.content = '';
apiCourseFile.detail(con.contentRefId).then(cfrs=>{
if(cfrs.status==200){
con.content=cfrs.result.previewFilePath;
//console.log(r.content);
}else{
$this.$refs.messager.show({message:'加载pdf课件文件失败',type:'error'});
}
});
}
apiCourseFile.detail(con.contentRefId).then(cfrs=>{
if(cfrs.status==200){
con.content=cfrs.result.previewFilePath;
//console.log(r.content);
}else{
$this.$refs.messager.show({message:'加载pdf课件文件失败',type:'error'});
}
});
}else if(con.contentType==50){ //scorm课件的内容
apiCourseFile.detail(con.contentRefId).then(cfrs => {
if(cfrs.status==200){
//this.curCFile = cfrs.result;