修复wy源的歌曲音质匹配问题

This commit is contained in:
lyswhut
2021-05-15 17:27:25 +08:00
parent 354922195f
commit 336b40a102
5 changed files with 14 additions and 9 deletions
+5 -3
View File
@@ -24,8 +24,9 @@ export default {
offset: limit * (page - 1),
}),
})
return searchRequest.promise.then(({ body }) =>
body && body.code === 200
return searchRequest.promise.then(({ body }) => {
// console.log(body)
return body && body.code === 200
? musicDetailApi.getList(body.result.songs.map(s => s.id)).then(({ list }) => {
this.total = body.result.songCount || 0
this.page = page
@@ -41,7 +42,8 @@ export default {
},
}
})
: body)
: body
})
},
getSinger(singers) {
let arr = []