优化临时播放逻辑

This commit is contained in:
lyswhut
2023-01-11 09:28:31 +08:00
parent bf310adc12
commit 9cc36e2a6a
11 changed files with 20 additions and 14 deletions
+1 -1
View File
@@ -224,7 +224,7 @@ export const clearPlayedList = () => {
* @param list 歌曲列表
*/
export const addTempPlayList = (list: LX.Player.TempPlayListItem[]) => {
const topList: Array<{ listId: string, musicInfo: LX.Music.MusicInfo | LX.Download.ListItem }> = []
const topList: Array<Omit<LX.Player.TempPlayListItem, 'top'>> = []
const bottomList = list.filter(({ isTop, ...musicInfo }) => {
if (isTop) {
topList.push(musicInfo)