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,11 +111,13 @@
}; };
}, },
onUnload() { onUnload() {
if (this.videoerroshow) { if (this.videoitem.itemDirectoryCode) {
if (this.videoitem.watchTime) { if (this.videoerroshow) {
this.videoitem.watchTime = this.formatSeconds(this.videoitem.watchTime) if (this.videoitem.watchTime) {
this.videoitem.watchTime = this.formatSeconds(this.videoitem.watchTime)
}
insertTrainingItemWatchRecord(this.videoitem).then(res => {})
} }
insertTrainingItemWatchRecord(this.videoitem).then(res => {})
} }
}, },
onLaunch() { onLaunch() {

View File

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