diff --git a/src/renderer/App.vue b/src/renderer/App.vue index 99d0d59a..1aba83a3 100644 --- a/src/renderer/App.vue +++ b/src/renderer/App.vue @@ -372,7 +372,7 @@ export default { if (!list || !list.list[info.index]) return info.list = list.list } - + if (!info.list || !info.list[info.index]) return window.restorePlayInfo = info this.setPlayList({ list: { diff --git a/src/renderer/store/modules/player.js b/src/renderer/store/modules/player.js index 60b4540a..9444d749 100644 --- a/src/renderer/store/modules/player.js +++ b/src/renderer/store/modules/player.js @@ -381,6 +381,7 @@ const mutations = { }) }, setList(state, { list, index }) { + if (!(list && list.list && list.list[index])) return state.playMusicInfo = { musicInfo: list.list[index], listId: list.id,