From 7e9989cc154e0ae4fe25a92d2e43792c6c97d572 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Thu, 4 May 2023 16:47:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/Ordervideolearning/Ordervideolearning.vue | 4 +--- pages/Videolearning/Videolearning.vue | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/pages/Ordervideolearning/Ordervideolearning.vue b/pages/Ordervideolearning/Ordervideolearning.vue index 0ed07ac..bee26a4 100644 --- a/pages/Ordervideolearning/Ordervideolearning.vue +++ b/pages/Ordervideolearning/Ordervideolearning.vue @@ -143,9 +143,7 @@ videoended(e) { this.videoContext.stop() if (this.videoerroshow) { - if (this.videoitem.watchTime) { - this.videoitem.watchTime = this.formatSeconds(this.videoitem.watchTime) - } + this.videoitem.watchTime = this.formatSeconds(this.videoitem.watchTime) insertTrainingItemWatchRecord(this.videoitem).then(res => { this.videoitem.watchTime = 0 this.videoitem.videoshow = false diff --git a/pages/Videolearning/Videolearning.vue b/pages/Videolearning/Videolearning.vue index 7172c7a..5d468d1 100644 --- a/pages/Videolearning/Videolearning.vue +++ b/pages/Videolearning/Videolearning.vue @@ -201,9 +201,7 @@ this.videoshow = false this.videoContext.stop() if (this.videoerroshow) { - if (this.videoitem.watchTime) { - this.videoitem.watchTime = this.formatSeconds(this.videoitem.watchTime) - } + this.videoitem.watchTime = this.formatSeconds(this.videoitem.watchTime) insertTrainingItemWatchRecord(this.videoitem).then(res => { this.videoitem.watchTime = 0 })