修复mg歌单搜索歌单播放数量显示问题
This commit is contained in:
parent
ef411ddb47
commit
c6fb2232d0
@ -19,6 +19,7 @@
|
||||
- 修复wy源热搜词失效的问题(#1401, @Folltoshe)
|
||||
- 修复Deepin 20下启用桌面歌词时可能会导致桌面卡死的问题(#1288)
|
||||
- 修复添加单首歌曲弹窗列表创建按钮无法取消的问题
|
||||
- 修复mg歌单搜索歌单播放数量显示问题
|
||||
|
||||
### 其他
|
||||
|
||||
|
||||
@ -299,8 +299,10 @@ export default {
|
||||
if (body.code != this.successCode) throw new Error('failed')
|
||||
return {
|
||||
list: body.songListResultData.result.map(item => {
|
||||
let num = parseInt(item.playNum)
|
||||
if (isNaN(num)) num = 0
|
||||
return {
|
||||
play_count: formatPlayCount(item.playcount),
|
||||
play_count: formatPlayCount(num),
|
||||
id: item.id,
|
||||
// author: item.createName,
|
||||
name: item.name,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user