From cd0c243c1e2076d9af37562df5d78244a1073193 Mon Sep 17 00:00:00 2001 From: nisen Date: Wed, 8 Nov 2023 09:51:21 +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 --- src/views/portal/article/Detail.vue | 3 ++- src/views/portal/case/Detail.vue | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/portal/article/Detail.vue b/src/views/portal/article/Detail.vue index e1534eb7..7ab3aecb 100644 --- a/src/views/portal/article/Detail.vue +++ b/src/views/portal/article/Detail.vue @@ -181,6 +181,7 @@ export default { beforeDestroy(){ window.removeEventListener("scroll",this.handleScroll); clearInterval(this.setTime); + this.cumulativeDuration = 0; }, methods: { banJump() { @@ -287,7 +288,7 @@ export default { event.content = "阅读了文章" $this.$store.dispatch("userTrigger", event); if(this.cumulativeDuration<=this.defaultMaxTime){ - sendEventData() + this.sendEventData() }else{ this.cumulativeDuration = 0 clearInterval(this.setTime); diff --git a/src/views/portal/case/Detail.vue b/src/views/portal/case/Detail.vue index 43775550..860d9f9c 100644 --- a/src/views/portal/case/Detail.vue +++ b/src/views/portal/case/Detail.vue @@ -266,6 +266,7 @@ export default { sessionStorage.removeItem('startTime') window.removeEventListener("scroll", this.handleScroll); clearInterval(this.setTimeCase); + this.cumulativeDuration = 0; }, methods: { endTimeRequst(caseId, recordEndTime) { @@ -549,7 +550,7 @@ export default { $this.$store.dispatch("userTrigger", event); this.cumulativeDuration += 60 if(this.cumulativeDuration<=this.defaultMaxTime){ - sendEventData() + this.sendEventData() }else{ this.cumulativeDuration = 0 clearInterval(this.setTimeCase);