mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/lyswhut/lx-music-desktop.git
synced 2026-09-20 08:04:00 +08:00
修复热搜词获取问题
This commit is contained in:
@@ -40,7 +40,7 @@ const actions = {
|
||||
task.push(
|
||||
state.list[source.id].length
|
||||
? Promise.resolve({ source: source.id, list: state.list[source.id] })
|
||||
: music[source.id].hotSearch.getList(),
|
||||
: music[source.id].hotSearch.getList().catch(() => ({ source: source.id, list: [] })),
|
||||
)
|
||||
}
|
||||
Promise.all(task).then(results => commit('setLists', results))
|
||||
|
||||
Reference in New Issue
Block a user