新增设置-播放设置-点击相同列表内的歌曲切歌时是否清空已播放列表
This commit is contained in:
@@ -222,10 +222,11 @@ const handlePlay = () => {
|
||||
* @param index 播放的歌曲位置
|
||||
*/
|
||||
export const playList = (listId: string, index: number) => {
|
||||
const prevListId = playInfo.playerListId
|
||||
setPlayListId(listId)
|
||||
pause()
|
||||
setPlayMusicInfo(listId, getList(listId)[index])
|
||||
clearPlayedList()
|
||||
if (appSetting['player.isAutoCleanPlayedList'] || prevListId != listId) clearPlayedList()
|
||||
clearTempPlayeList()
|
||||
handlePlay()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user