mirror of
https://github.com/simon987/music-graph-ui.git
synced 2025-04-10 14:06:41 +00:00
rename tracks field
This commit is contained in:
parent
65bafb2b54
commit
927072e6aa
@ -100,8 +100,8 @@ export default {
|
||||
return t
|
||||
})
|
||||
|
||||
if (this.artistInfo.spotifyPreviewUrls.length > 0) {
|
||||
const randSong = this.artistInfo.spotifyPreviewUrls[Math.floor(Math.random() * this.artistInfo.spotifyPreviewUrls.length)]
|
||||
if (this.artistInfo.tracks.length > 0) {
|
||||
const randSong = this.artistInfo.tracks[Math.floor(Math.random() * this.artistInfo.tracks.length)]
|
||||
this.audio = new Audio(randSong.url)
|
||||
this.playingSong = randSong.name
|
||||
this.playingRelease = randSong.release
|
||||
|
Loading…
x
Reference in New Issue
Block a user