Kaynağa Gözat

fix: 调整部分功能模块

wenxingxing 18 saat önce
ebeveyn
işleme
e0b6a638c5
1 değiştirilmiş dosya ile 5 ekleme ve 2 silme
  1. 5 2
      pages/course/info.vue

+ 5 - 2
pages/course/info.vue

@@ -1519,7 +1519,10 @@ export default {
 			this.pickCatalogAction(this.pickCatalogIdx - 1)
 		},
 		addStudyCourse() {
-			if (this.catalogueList.length == 0 || this.tempAudioDuration == 0) {
+			// if (this.catalogueList.length == 0 || this.tempAudioDuration == 0) {
+			// 	return;
+			// }
+			if (this.catalogueList.length == 0) {
 				return;
 			}
 			// this.pickCatalog=this.catalogueList[this.pickCatalogIdx];
@@ -1529,7 +1532,7 @@ export default {
 			// }
 			const parmas = {
 				"courseId": parseInt(this.courseId),
-				"duration": this.tempAudioDuration,
+				"duration": this.tempAudioDuration || 1,
 				"videoId": this.pickCatalog.videoId
 			};
 			addDuration(parmas).then(res => {