PLATINE drag to play & random tracks
All checks were successful
Deploy App / build (push) Successful in 1m59s
Deploy App / deploy (push) Successful in 17s

This commit is contained in:
valere
2025-12-19 11:41:47 +01:00
parent 1c4cbfe21c
commit c0d79591c3
4 changed files with 87 additions and 28 deletions

View File

@@ -57,6 +57,12 @@ export const useDataStore = defineStore('data', {
if (box) {
box.activeSide = side
}
},
getRandomPlaylistTrack() {
if (this.tracks.length === 0) return null
const randomIndex = Math.floor(Math.random() * this.tracks.length)
return this.tracks[randomIndex]
}
},