不允许播放空列表
parent
cc4cb1a6a7
commit
f94c1ef852
|
@ -372,7 +372,7 @@ export default {
|
||||||
if (!list || !list.list[info.index]) return
|
if (!list || !list.list[info.index]) return
|
||||||
info.list = list.list
|
info.list = list.list
|
||||||
}
|
}
|
||||||
|
if (!info.list || !info.list[info.index]) return
|
||||||
window.restorePlayInfo = info
|
window.restorePlayInfo = info
|
||||||
this.setPlayList({
|
this.setPlayList({
|
||||||
list: {
|
list: {
|
||||||
|
|
|
@ -381,6 +381,7 @@ const mutations = {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
setList(state, { list, index }) {
|
setList(state, { list, index }) {
|
||||||
|
if (!(list && list.list && list.list[index])) return
|
||||||
state.playMusicInfo = {
|
state.playMusicInfo = {
|
||||||
musicInfo: list.list[index],
|
musicInfo: list.list[index],
|
||||||
listId: list.id,
|
listId: list.id,
|
||||||
|
|
Loading…
Reference in New Issue