mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 11:26:43 +08:00
提交修改
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1 +1 @@
|
|||||||
/node_modules
|
node_modules
|
||||||
|
|||||||
@@ -650,21 +650,23 @@ export default {
|
|||||||
}
|
}
|
||||||
} else if(r.contentType == 40) {
|
} else if(r.contentType == 40) {
|
||||||
this.contentData.content="";
|
this.contentData.content="";
|
||||||
if (r.content != '' && r.content.indexOf('.pdf') > -1) {
|
|
||||||
this.contentData.content = cfrs.result.previewFilePath;
|
|
||||||
}else{
|
|
||||||
apiCourseFile.detail(r.contentRefId).then(cfrs => {
|
apiCourseFile.detail(r.contentRefId).then(cfrs => {
|
||||||
if (cfrs.status == 200) {
|
if (cfrs.status == 200) {
|
||||||
this.curCFile=cfrs.result;
|
this.curCFile=cfrs.result;
|
||||||
this.converStatus = cfrs.result.converStatus;
|
this.converStatus = cfrs.result.converStatus;
|
||||||
this.contentData.content = cfrs.result.previewFilePath;
|
this.contentData.content = cfrs.result.previewFilePath;
|
||||||
|
//下面是为了兼容老数据
|
||||||
|
if(!cfrs.result.previewFilePath && cfrs.result.filePath.index('.pdf')>-1){
|
||||||
|
this.contentData.content=cfrs.result.filePath;
|
||||||
|
}
|
||||||
//console.log(r.content);
|
//console.log(r.content);
|
||||||
}else {
|
}else {
|
||||||
this.contentData.content="";
|
this.contentData.content="";
|
||||||
this.$message.error('加载pdf课件文件失败');
|
this.$message.error('加载pdf课件文件失败');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
|
||||||
}
|
}
|
||||||
this.type = 0;
|
this.type = 0;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user