fix: 🐛 fix loop action
All checks were successful
repod / xml (push) Successful in 24s
repod / php (push) Successful in 1m6s
repod / nodejs (push) Successful in 1m8s
repod / release (push) Has been skipped

This commit is contained in:
Michel Roux 2024-08-15 21:18:20 +02:00
parent cf6bd440bf
commit 544c91edee

View File

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