mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-14 21:36:42 +08:00
提交为了发布
This commit is contained in:
@@ -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课件文件失败');
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user