From 02c4ee9fb23677765a3b98bb10a6fc5331828bfe Mon Sep 17 00:00:00 2001 From: qier222 Date: Thu, 3 Dec 2020 22:22:21 +0800 Subject: [PATCH] fix: play artist's popular song issue #70 --- src/utils/play.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/play.js b/src/utils/play.js index 546d009..3a58ddb 100644 --- a/src/utils/play.js +++ b/src/utils/play.js @@ -32,7 +32,8 @@ export function playPlaylistByID(id, trackID = "first", noCache = false) { export function playArtistByID(id, trackID = "first") { getArtist(id).then((data) => { - playAList(data.hotSongs, id, "artist", trackID); + let trackIDs = data.hotSongs.map((t) => t.id); + playAList(trackIDs, id, "artist", trackID); }); }