From 544c91edeed69232c4e2ff2b27c021bdb67195bc Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Thu, 15 Aug 2024 21:18:20 +0200 Subject: [PATCH] fix: :bug: fix loop action --- src/App.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/App.vue b/src/App.vue index 2c2c3fe..a8bd6ed 100644 --- a/src/App.vue +++ b/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() + } + }, }, }