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