修改图片读取顺序

This commit is contained in:
lyswhut
2022-10-29 13:19:15 +08:00
parent 8841951fe3
commit 3e9a111643
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -40,10 +40,10 @@ export const getPicUrl = async({ musicInfo, listId, isRefresh, onToggleSource =
onToggleSource?: (musicInfo?: LX.Music.MusicInfoOnline) => void
}): Promise<string> => {
if (!isRefresh) {
if (musicInfo.meta.picUrl) return musicInfo.meta.picUrl
const pic = await window.lx.worker.main.getMusicFilePic(musicInfo.meta.filePath)
if (pic) return pic
if (musicInfo.meta.picUrl) return musicInfo.meta.picUrl
}
onToggleSource()