pdf为空加载异常

This commit is contained in:
zhangsir
2024-09-25 11:02:11 +08:00
parent 978c7ca1c7
commit 56634f8117

View File

@@ -370,7 +370,15 @@ export default {
} }
}); });
} }
if(r.content==''){
apiCourseFile.detail(r.contentRefId).then(cfrs=>{
if(cfrs.status==200){
r.content=cfrs.result.previewFilePath;
}else{
$this.$message.error('加载pdf课件文件失败');
}
});
}
} }
this.contentData = r; this.contentData = r;
}, },