mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 12:26:44 +08:00
放开追回学习时长的调用
This commit is contained in:
@@ -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);
|
});
|
||||||
// }
|
|
||||||
// });
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//结束追加学习时长
|
//结束追加学习时长
|
||||||
|
|||||||
Reference in New Issue
Block a user