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 891d4762d0 - Show all commits

View File

@ -40,7 +40,7 @@ export default {
...mapState(usePlayer, ['rate']), ...mapState(usePlayer, ['rate']),
}, },
methods: { methods: {
...mapActions(usePlayer, ['seRate']), ...mapActions(usePlayer, ['setRate']),
changeRate(diff) { changeRate(diff) {
const newRate = (this.rate + diff).toPrecision(2) const newRate = (this.rate + diff).toPrecision(2)
this.setRate(newRate > 0 ? newRate : this.rate) this.setRate(newRate > 0 ? newRate : this.rate)