Migrate to vue3 (fix #126) #127

Merged
Xefir merged 32 commits from vue3 into main 2024-08-17 12:24:28 +00:00
Showing only changes of commit 544c91edee - Show all commits

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>