From 9d40e7c00447600fa585e2ef341205faa4386977 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Mon, 13 Dec 2021 15:57:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=83=AD=E6=90=9C=E8=AF=8D?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/store/modules/hotSearch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))