解决课程播放的一个bug

This commit is contained in:
daihh
2023-02-07 16:56:35 +08:00
parent 065298b91a
commit c8064b4bbc

View File

@@ -711,10 +711,14 @@
//this.curSection=this.sectionList[0];
}else{
let treelist=this.catalogTree;
this.curSection=treelist[0].sec;
this.curContent=treelist[0].children[0];
// this.curContent=this.contentList[0];
// this.curSection=this.sectionList[0];
//console.log(treelist,'treelist')
if(treelist.length>0){
this.curSection=treelist[0].sec;
this.curContent=treelist[0].children[0];
}else{
this.curContent=this.contentList[0];
this.curSection=this.sectionList[0];
}
//要不要在这里处理?
// if(this.curContent.contentType==10 || this.curContent.contentType==20){
// if(this.contentList[0].content.startsWith('\{')){