修复音乐搜索列表的稍后播放功能无效的问题
This commit is contained in:
@@ -289,14 +289,6 @@ export default {
|
||||
case 'play':
|
||||
this.testPlay(info.index)
|
||||
break
|
||||
case 'playLater':
|
||||
if (this.selectedData.length) {
|
||||
this.setTempPlayList(this.selectedData.map(s => ({ listId: '__temp__', musicInfo: s })))
|
||||
this.resetSelect()
|
||||
} else {
|
||||
this.setTempPlayList([{ listId: '__temp__', musicInfo: this.list[info.index] }])
|
||||
}
|
||||
break
|
||||
case 'listAdd':
|
||||
this.musicInfo = this.listInfo.list[info.index]
|
||||
this.$nextTick(() => {
|
||||
@@ -480,6 +472,14 @@ export default {
|
||||
}
|
||||
this.testPlay(index)
|
||||
break
|
||||
case 'playLater':
|
||||
if (this.selectedData.length) {
|
||||
this.setTempPlayList(this.selectedData.map(s => ({ listId: '__temp__', musicInfo: s })))
|
||||
this.resetSelect()
|
||||
} else {
|
||||
this.setTempPlayList([{ listId: '__temp__', musicInfo: this.listInfo.list[index] }])
|
||||
}
|
||||
break
|
||||
case 'addTo':
|
||||
if (this.selectedData.length) {
|
||||
this.$nextTick(() => {
|
||||
|
||||
Reference in New Issue
Block a user