fix: 🐛 fix loop action

This commit is contained in:
Michel Roux 2024-08-15 21:18:20 +02:00
parent cf6bd440bf
commit 544c91edee
1 changed files with 6 additions and 6 deletions

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>