修复恢复上次播放的歌曲时在随机播放模式下不把恢复播放的歌曲放入已播放队列的问题

pull/392/head
lyswhut 2020-12-24 11:33:01 +08:00
parent 06b453ebe7
commit a58d65e8af
2 changed files with 4 additions and 0 deletions

View File

@ -2,3 +2,6 @@
- 我的列表右键菜单新增列表排序功能,可调整单曲、多选后的歌曲的顺序。注意:多选排序还将会按照选中歌曲时的顺序排序 - 我的列表右键菜单新增列表排序功能,可调整单曲、多选后的歌曲的顺序。注意:多选排序还将会按照选中歌曲时的顺序排序
### 修复
- 修复恢复上次播放的歌曲时在随机播放模式下不把恢复播放的歌曲放入已播放队列的问题(该问题会导致随机模式下会导致未播放完整个列表前就会再次随机到该歌曲,以及无法通过上一曲切回该歌曲)

View File

@ -264,6 +264,7 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.sendProgressEvent(this.progress, 'paused') this.sendProgressEvent(this.progress, 'paused')
}) })
if (this.setting.player.togglePlayMethod == 'random') this.setPlayedList(musicInfo)
window.restorePlayInfo = null window.restorePlayInfo = null
return return
} }