fix: play artist's popular song issue #70

This commit is contained in:
qier222 2020-12-03 22:22:21 +08:00
parent a06afe1468
commit 02c4ee9fb2

View File

@ -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);
});
}