修复音乐搜索列表的稍后播放功能无效的问题

This commit is contained in:
lyswhut
2021-02-01 18:26:26 +08:00
parent 84530ca0a2
commit 70d24ffdfd
2 changed files with 9 additions and 10 deletions
+8 -8
View File
@@ -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(() => {