This commit is contained in:
ann 2023-01-19 22:54:32 +08:00
parent 7b4941aa41
commit 0b84a0ddc6
1 changed files with 8 additions and 2 deletions

View File

@ -44,7 +44,8 @@ export default {
activeName: '1',
eventTab: '1',
startBtnDisabled: false,
eventFlow: []
eventFlow: [],
eventsLoop: undefined
}
},
mounted() {
@ -53,10 +54,15 @@ export default {
tabSwitch() {},
start() {
this.startBtnDisabled = true
//
this.getEventData()
this.eventsLoop = setInterval(this.getEventData, 3000)
},
getEventData() {
console.log('sss')
},
pause() {
this.startBtnDisabled = false
clearInterval(this.eventsLoop)
}
}
}