新增各大平台歌单热门标签显示

This commit is contained in:
lyswhut
2019-12-31 16:12:46 +08:00
parent 529078dc67
commit 0228850d6d
4 changed files with 9 additions and 3 deletions
+2 -1
View File
@@ -67,6 +67,7 @@ export default {
result.push({
id: tag.id,
name: tag.special_name,
source: 'kg',
})
}
return result
@@ -95,7 +96,7 @@ export default {
this.getSongListUrl(sortId, tagId, page),
)
return this._requestObj_list.promise.then(({ body }) => {
if (body.status !== 1) return this.getSongList(sortId, tagId, page, ++tryNum)
if (!body || body.status !== 1) return this.getSongList(sortId, tagId, page, ++tryNum)
return this.filterList(body.special_db)
})
},
+1 -1
View File
@@ -261,7 +261,7 @@ export default {
})
},
getTags() {
return Promise.all([this.getTag(), this.getHotTag()]).then(([tags, hotTag]) => ({ tags, hotTag }))
return Promise.all([this.getTag(), this.getHotTag()]).then(([tags, hotTag]) => ({ tags, hotTag, source: 'tx' }))
},
}