修复导入列表数据时的歌曲信息转换问题

This commit is contained in:
lyswhut
2022-11-18 09:58:02 +08:00
parent f3852b20ca
commit 9920e5ef99
4 changed files with 66 additions and 50 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ export const getOtherSource = async(musicInfo: LX.Music.MusicInfo | LX.Download.
if (getOtherSourcePromises.has(key)) return getOtherSourcePromises.get(key)
const promise = musicSdk.findMusic(searchMusicInfo).then((otherSource) => {
const sources: LX.Music.MusicInfoOnline[] = otherSource.map(toNewMusicInfo)
const sources: LX.Music.MusicInfoOnline[] = otherSource.map(toNewMusicInfo) as LX.Music.MusicInfoOnline[]
if (sources.length) void saveOtherSourceFromStore(musicInfo.id, sources)
return sources
}).finally(() => {