放开追回学习时长的调用

This commit is contained in:
daihh
2023-03-29 10:34:23 +08:00
parent 7b72e42798
commit 63e6810514

View File

@@ -1347,24 +1347,22 @@
console.log(rs.message); console.log(rs.message);
} }
}); });
// let postData = { let postAppendData = {
// id: this.appentId, id: this.appentId,
// studyId: this.studyId, studyId: this.studyId,
// courseId: this.courseInfo.id, courseId: this.courseInfo.id,
// contentId: this.contentData.id, contentId: this.contentData.id,
// studyInfo: this.courseInfo.name + studyInfo: this.courseInfo.name +"-" +this.contentData.contentName,
// "-" + duration: duration
// this.contentData.contentName, };
// duration: duration apiStudy.appendStudyTime(postAppendData).then(rs => {
// }; if (rs.status == 200) {
// apiStudy.appendStudyTime(postData).then(rs => { this.appentId = rs.result;
// if (rs.status == 200) { studyUtil.clearStudyDuration(); //清除本地存储
// this.appentId = rs.result; } else {
// studyUtil.clearStudyDuration(); //清除本地存储 console.log(rs.message);
// } else { }
// console.log(rs.message); });
// }
// });
} }
}, },
//结束追加学习时长 //结束追加学习时长