diff --git a/publish/changeLog.md b/publish/changeLog.md index 8d7700a9..815b03de 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -22,6 +22,7 @@ - 修复窗口尺寸设置对应的字体大小在启动后不生效的问题 - 修复wy源搜索某些歌曲时第一页之后的歌曲无法加载的问题 - 修复使用Scheme URL搜索歌曲时,不会自动关闭播放详情页(若处于打开状态)的问题 +- 修复换源失败时的处理问题 ### 变更 diff --git a/src/renderer/store/modules/list.js b/src/renderer/store/modules/list.js index c5c5c340..653b75cc 100644 --- a/src/renderer/store/modules/list.js +++ b/src/renderer/store/modules/list.js @@ -31,8 +31,9 @@ const actions = { if (getOtherSourcePromises.has(key)) return getOtherSourcePromises.get(key) const promise = musicSdk.findMusic(musicInfo).then(otherSource => { commit('setOtherSource', { musicInfo, otherSource }) - if (getOtherSourcePromises.has(key)) getOtherSourcePromises.delete(key) return otherSource + }).finally(() => { + if (getOtherSourcePromises.has(key)) getOtherSourcePromises.delete(key) }) getOtherSourcePromises.set(key, promise) return promise