mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-06 17:36:45 +08:00
空字符串增加判断
This commit is contained in:
@@ -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 => {
|
||||||
|
|||||||
Reference in New Issue
Block a user