修复百度源搜索结果为空时的接口处理Bug

This commit is contained in:
lyswhut
2019-09-30 13:14:55 +08:00
parent 1f77b3dd4b
commit 5b612bfa0f
2 changed files with 2 additions and 0 deletions
@@ -19,6 +19,7 @@ export default {
handleResult(rawData) {
let ids = new Set()
const list = []
if (!rawData) return list
rawData.forEach(item => {
if (ids.has(item.song_id)) return
ids.add(item.song_id)