迁移搜索、播放启动参数支持

This commit is contained in:
lyswhut
2022-11-04 15:56:34 +08:00
parent 303d712860
commit 9bec54c454
5 changed files with 94 additions and 93 deletions
@@ -21,7 +21,7 @@ export default () => {
const id = decodeURIComponent(link)
const playListId = `${source}__${decodeURIComponent(link)}`
let list = (await getListDetail(id, source, 1)).list
if (playIndex != null && list.length > playIndex) {
if (playIndex == null || list.length > playIndex) {
isPlayingList = true
await setTempList(playListId, list)
playList(tempList.id, getListPlayIndex(list, playIndex))