mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 19:36:43 +08:00
修改
This commit is contained in:
@@ -181,6 +181,7 @@ export default {
|
|||||||
beforeDestroy(){
|
beforeDestroy(){
|
||||||
window.removeEventListener("scroll",this.handleScroll);
|
window.removeEventListener("scroll",this.handleScroll);
|
||||||
clearInterval(this.setTime);
|
clearInterval(this.setTime);
|
||||||
|
this.cumulativeDuration = 0;
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
banJump() {
|
banJump() {
|
||||||
@@ -287,7 +288,7 @@ export default {
|
|||||||
event.content = "阅读了文章"
|
event.content = "阅读了文章"
|
||||||
$this.$store.dispatch("userTrigger", event);
|
$this.$store.dispatch("userTrigger", event);
|
||||||
if(this.cumulativeDuration<=this.defaultMaxTime){
|
if(this.cumulativeDuration<=this.defaultMaxTime){
|
||||||
sendEventData()
|
this.sendEventData()
|
||||||
}else{
|
}else{
|
||||||
this.cumulativeDuration = 0
|
this.cumulativeDuration = 0
|
||||||
clearInterval(this.setTime);
|
clearInterval(this.setTime);
|
||||||
|
|||||||
@@ -266,6 +266,7 @@ export default {
|
|||||||
sessionStorage.removeItem('startTime')
|
sessionStorage.removeItem('startTime')
|
||||||
window.removeEventListener("scroll", this.handleScroll);
|
window.removeEventListener("scroll", this.handleScroll);
|
||||||
clearInterval(this.setTimeCase);
|
clearInterval(this.setTimeCase);
|
||||||
|
this.cumulativeDuration = 0;
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
endTimeRequst(caseId, recordEndTime) {
|
endTimeRequst(caseId, recordEndTime) {
|
||||||
@@ -549,7 +550,7 @@ export default {
|
|||||||
$this.$store.dispatch("userTrigger", event);
|
$this.$store.dispatch("userTrigger", event);
|
||||||
this.cumulativeDuration += 60
|
this.cumulativeDuration += 60
|
||||||
if(this.cumulativeDuration<=this.defaultMaxTime){
|
if(this.cumulativeDuration<=this.defaultMaxTime){
|
||||||
sendEventData()
|
this.sendEventData()
|
||||||
}else{
|
}else{
|
||||||
this.cumulativeDuration = 0
|
this.cumulativeDuration = 0
|
||||||
clearInterval(this.setTimeCase);
|
clearInterval(this.setTimeCase);
|
||||||
|
|||||||
Reference in New Issue
Block a user