fix: 🐛 fix loop action
This commit is contained in:
parent
cf6bd440bf
commit
544c91edee
12
src/App.vue
12
src/App.vue
@ -33,15 +33,15 @@ export default {
|
||||
},
|
||||
mounted() {
|
||||
this.init()
|
||||
|
||||
setInterval(() => {
|
||||
if (this.paused === false) {
|
||||
this.time()
|
||||
}
|
||||
}, 40000)
|
||||
setInterval(this.loop, 40000)
|
||||
},
|
||||
methods: {
|
||||
...mapActions(usePlayer, ['init', 'time']),
|
||||
loop() {
|
||||
if (this.paused === false) {
|
||||
this.time()
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user