修复程序初始化顺序导致的问题

This commit is contained in:
lyswhut
2022-11-23 18:04:28 +08:00
parent 2aa4ff8422
commit 2d5e336f0f
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ const initPrevPlayInfo = async() => {
window.lx.restorePlayInfo = null
if (!info?.listId || info.index < 0) return
const list = await getListMusics(info.listId)
if (!list || !list[info.index]) return
if (!list?.[info.index]) return
window.lx.restorePlayInfo = info
playList(info.listId, info.index)