This commit is contained in:
曹辉 2023-05-05 08:29:03 +08:00
parent 130bd124e1
commit ea4ae6d7ff
2 changed files with 12 additions and 8 deletions

View File

@ -111,12 +111,14 @@
};
},
onUnload() {
if (this.videoitem.itemDirectoryCode) {
if (this.videoerroshow) {
if (this.videoitem.watchTime) {
this.videoitem.watchTime = this.formatSeconds(this.videoitem.watchTime)
}
insertTrainingItemWatchRecord(this.videoitem).then(res => {})
}
}
},
onLaunch() {
//

View File

@ -105,12 +105,14 @@
};
},
onUnload() {
if (this.videoitem.itemDirectoryCode) {
if (this.videoerroshow) {
if (this.videoitem.watchTime) {
this.videoitem.watchTime = this.formatSeconds(this.videoitem.watchTime)
}
insertTrainingItemWatchRecord(this.videoitem).then(res => {})
}
}
},
// onHide() {
// var that = this