修复歌单无法从用data传参调用的问题

This commit is contained in:
lyswhut 2022-02-18 14:48:00 +08:00
parent 806c882965
commit abbf067625

View File

@ -33,7 +33,9 @@ const useOpenSonglist = () => {
id: null,
url: null,
}
if (!data) {
if (data) {
songlistInfo = data
} else {
songlistInfo.source = paths[0]
songlistInfo.url = paths[1]
}
@ -61,7 +63,9 @@ const usePlaySonglistDetail = () => {
url: null,
index: null,
}
if (!data) {
if (data) {
songlistInfo = data
} else {
songlistInfo.source = paths[0]
songlistInfo.url = paths[1]
songlistInfo.index = paths[2]