he2802 3 роки тому
батько
коміт
7e70a16964
1 змінених файлів з 4 додано та 3 видалено
  1. 4 3
      components/course/courseChapter.vue

+ 4 - 3
components/course/courseChapter.vue

@@ -79,11 +79,12 @@ export default {
 			if(!this.down&&this.list.length==0){
 				console.log(item.id,69)
 				if(this.isBuy){
+					let moduleId = item.moduleId?item.moduleId:0
 					if(this.isRebuild){
-						this.getReSectionList(item.id,item.courseId,item.moduleId)
+						this.getReSectionList(item.id,item.courseId,moduleId)
 					}else{
-						this.getBuySectionList(item.id,item.courseId,item.moduleId)
-						this.getMenuExamList(item.id,item.courseId,item.moduleId)
+						this.getBuySectionList(item.id,item.courseId,moduleId)
+						this.getMenuExamList(item.id,item.courseId,moduleId)
 					}
 				}else{
 					this.getSectionList(item.id)