提交修改

This commit is contained in:
daihh
2022-06-02 11:20:11 +08:00
parent bdc304a49e
commit b75b7f814e
3 changed files with 10 additions and 8 deletions

2
.gitignore vendored
View File

@@ -1 +1 @@
/node_modules
node_modules

View File

@@ -650,21 +650,23 @@ export default {
}
} else if(r.contentType == 40) {
this.contentData.content="";
if (r.content != '' && r.content.indexOf('.pdf') > -1) {
this.contentData.content = cfrs.result.previewFilePath;
}else{
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;
}
//console.log(r.content);
}else {
this.contentData.content="";
this.$message.error('加载pdf课件文件失败');
}
});
}
}
this.type = 0;
},