支持启动软件时恢复播放下载列表里的歌曲

This commit is contained in:
lyswhut
2021-11-06 16:15:29 +08:00
parent 47ee572640
commit 81bd8fbb74
4 changed files with 45 additions and 15 deletions
+11 -4
View File
@@ -404,10 +404,17 @@ export default {
if (!info) return
if (info.index < 0) return
if (info.listId) {
const list = window.allList[info.listId]
// console.log(list)
if (!list || !list.list[info.index]) return
info.list = list.list
if (info.listId == 'download') {
const list = this.downloadList
// console.log(list)
if (!list || !list[info.index]) return
info.list = list
} else {
const list = window.allList[info.listId]
// console.log(list)
if (!list || !list.list[info.index]) return
info.list = list.list
}
}
if (!info.list || !info.list[info.index]) return
window.restorePlayInfo = info