mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-11 03:46:47 +08:00
一个pdf文件播放判断的偶发问题
This commit is contained in:
@@ -863,10 +863,11 @@
|
|||||||
// console.log(con,'con');
|
// console.log(con,'con');
|
||||||
this.playerBoxShow=false;
|
this.playerBoxShow=false;
|
||||||
if(con.contentType==40){
|
if(con.contentType==40){
|
||||||
//如果是文档,需要再次加载pdf
|
//如果是文档,需要再次加载pdf,之所以不直接判断 con.contentRefId 是为了兼容一期老版本的
|
||||||
if(con.content!='' && con.content.indexOf('.pdf')==-1){
|
if(con.content!='' && con.content.indexOf('.pdf')==-1){
|
||||||
// 先置空,否则会有延迟
|
// 先置空,否则会有延迟
|
||||||
con.content = '';
|
con.content = '';
|
||||||
|
}
|
||||||
apiCourseFile.detail(con.contentRefId).then(cfrs=>{
|
apiCourseFile.detail(con.contentRefId).then(cfrs=>{
|
||||||
if(cfrs.status==200){
|
if(cfrs.status==200){
|
||||||
con.content=cfrs.result.previewFilePath;
|
con.content=cfrs.result.previewFilePath;
|
||||||
@@ -875,9 +876,7 @@
|
|||||||
$this.$refs.messager.show({message:'加载pdf课件文件失败',type:'error'});
|
$this.$refs.messager.show({message:'加载pdf课件文件失败',type:'error'});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
|
||||||
}else if(con.contentType==50){ //scorm课件的内容
|
}else if(con.contentType==50){ //scorm课件的内容
|
||||||
|
|
||||||
apiCourseFile.detail(con.contentRefId).then(cfrs => {
|
apiCourseFile.detail(con.contentRefId).then(cfrs => {
|
||||||
if(cfrs.status==200){
|
if(cfrs.status==200){
|
||||||
//this.curCFile = cfrs.result;
|
//this.curCFile = cfrs.result;
|
||||||
|
|||||||
Reference in New Issue
Block a user