优化歌单、排行榜一键播放按钮的播放机制
This commit is contained in:
@@ -39,14 +39,17 @@ const useInitEnvParamPlay = () => {
|
||||
const playSongListDetail = async(source, link, playIndex) => {
|
||||
if (link == null) return
|
||||
let list
|
||||
let id
|
||||
try {
|
||||
list = await getListDetailAll({ source, id: decodeURIComponent(link) })
|
||||
id = decodeURIComponent(link)
|
||||
list = await getListDetailAll({ source, id })
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
}
|
||||
setTempList({
|
||||
list,
|
||||
index: getListPlayIndex(list, playIndex),
|
||||
id: `${source}__${id}`,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user