This commit is contained in:
nisen
2023-11-08 09:51:21 +08:00
parent 97ac0e958f
commit cd0c243c1e
2 changed files with 4 additions and 2 deletions

View File

@@ -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);

View File

@@ -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);