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() { mounted() {
this.init() this.init()
setInterval(this.loop, 40000)
setInterval(() => {
if (this.paused === false) {
this.time()
}
}, 40000)
}, },
methods: { methods: {
...mapActions(usePlayer, ['init', 'time']), ...mapActions(usePlayer, ['init', 'time']),
loop() {
if (this.paused === false) {
this.time()
}
},
}, },
} }
</script> </script>