From c9cab468e7eaf5b3387360c9dfc5755983dbde95 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Tue, 5 Apr 2022 22:15:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8D=A2=E6=BA=90=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E6=97=B6=E7=9A=84=E5=A4=84=E7=90=86=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- publish/changeLog.md | 1 + src/store/modules/list/action.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/publish/changeLog.md b/publish/changeLog.md index 1186be4..2ccce40 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -8,6 +8,7 @@ - 修复wy源搜索某些歌曲时第一页之后的歌曲无法加载的问题 - 每次启动时过滤无效的歌曲 +- 修复换源失败时的处理问题 ### 变更 diff --git a/src/store/modules/list/action.js b/src/store/modules/list/action.js index aed130a..7f607cc 100644 --- a/src/store/modules/list/action.js +++ b/src/store/modules/list/action.js @@ -348,8 +348,9 @@ export const getOtherSource = ({ musicInfo, id }) => (dispatch, getState) => { }) } } - if (getOtherSourcePromises.has(key)) getOtherSourcePromises.delete(key) return otherSource + }).finally(() => { + if (getOtherSourcePromises.has(key)) getOtherSourcePromises.delete(key) }) getOtherSourcePromises.set(key, promise) return promise