diff --git a/src/renderer/store/modules/hotSearch.js b/src/renderer/store/modules/hotSearch.js index b2f0ae69..3c37a3b0 100644 --- a/src/renderer/store/modules/hotSearch.js +++ b/src/renderer/store/modules/hotSearch.js @@ -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))