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