mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-23 17:55:37 +08:00
提交我的修改
This commit is contained in:
@@ -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课件文件失败');
|
||||
|
||||
Reference in New Issue
Block a user