提交我的修改

This commit is contained in:
daihh
2022-06-02 17:24:00 +08:00
5 changed files with 51 additions and 39 deletions

View File

@@ -263,7 +263,9 @@ export default {
components: { courseImage, portalHeader, portalFooter, hyperLink, comments, homework, exam, interactBar, assess, pdfPreview, audioPlayer, videoPlayer },
data() {
return {
curCFile:{},
curCFile:{
converStatus:4,
},
interactRuning:false,
playerBoxShow:false,
userAvatarText,
@@ -820,9 +822,10 @@ export default {
apiCourseFile.detail(r.contentRefId).then(cfrs => {
if (cfrs.status == 200) {
r.content = cfrs.result.previewFilePath;
this.curCFile = cfrs.result;
if(cfrs.result.previewFilePath == '' && cfrs.result.filePath.indexOf('pdf') > -1) {
r.content = cfrs.result.filePath;
} else {
this.curCFile = cfrs.result;
}
} else {
$this.$message.error('加载pdf课件文件失败');