空字符串增加判断

This commit is contained in:
zhangsir
2024-09-24 16:17:16 +08:00
parent 0afce2a287
commit cde559963c

View File

@@ -928,6 +928,15 @@
} }
}); });
} }
if(con.content==''){
apiCourseFile.detail(con.contentRefId).then(cfrs=>{
if(cfrs.status==200){
con.content=cfrs.result.previewFilePath;
}else{
$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 => {