From 70d24ffdfd2b34c3cc30a4b71f70fad7ddc56b35 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Mon, 1 Feb 2021 18:26:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=9F=B3=E4=B9=90=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E5=88=97=E8=A1=A8=E7=9A=84=E7=A8=8D=E5=90=8E=E6=92=AD?= =?UTF-8?q?=E6=94=BE=E5=8A=9F=E8=83=BD=E6=97=A0=E6=95=88=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- publish/changeLog.md | 3 +-- src/renderer/views/Search.vue | 16 ++++++++-------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/publish/changeLog.md b/publish/changeLog.md index 2460416e..ef55a99e 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -1,4 +1,3 @@ ### 修复 -- 修复非透明模式下右侧滚动条无法拖动的问题 -- 修复MAC下xm音乐滑块验证问题 +- 修复音乐搜索列表的稍后播放功能无效的问题 diff --git a/src/renderer/views/Search.vue b/src/renderer/views/Search.vue index 9fb8f0a8..6c428d8e 100644 --- a/src/renderer/views/Search.vue +++ b/src/renderer/views/Search.vue @@ -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(() => {