fix: search issues

This commit is contained in:
qier222 2021-01-31 17:36:00 +08:00
parent 0ef108df4c
commit 86452f0420
6 changed files with 44 additions and 56 deletions

View file

@ -22,7 +22,7 @@ export function search(params) {
method: "get",
params,
}).then((data) => {
if (data.result.song !== undefined)
if (data.result?.song !== undefined)
data.result.song.songs = mapTrackPlayableStatus(data.result.song.songs);
return data;
});