不允许播放空列表

pull/518/head
lyswhut 2021-05-24 11:03:21 +08:00
parent cc4cb1a6a7
commit f94c1ef852
2 changed files with 2 additions and 1 deletions

View File

@ -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: {

View File

@ -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,