|
|
@@ -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 => {
|