提交为了发布

This commit is contained in:
daihh
2022-06-02 17:45:56 +08:00
44 changed files with 2247 additions and 1666 deletions

View File

@@ -649,20 +649,19 @@ export default {
this.curriculumData.url = r.content
}
} else if(r.contentType == 40) {
this.contentData.content="";
this.contentData.content="";
apiCourseFile.detail(r.contentRefId).then(cfrs => {
if (cfrs.status == 200) {
this.curCFile=cfrs.result;
this.converStatus = cfrs.result.converStatus;
this.contentData.content = cfrs.result.previewFilePath;
//下面是为了兼容老数据
if(!cfrs.result.previewFilePath && cfrs.result.filePath.index('.pdf')>-1){
this.contentData.content=cfrs.result.filePath;
if(cfrs.result.previewFilePath == '' && cfrs.result.filePath.indexOf('pdf') > -1) {
this.contentData.content = cfrs.result.filePath;
} else {
this.converStatus = cfrs.result.converStatus;
}
//console.log(r.content);
}else {
this.contentData.content="";
this.$message.error('加载pdf课件文件失败');
}
});