修复“点击列表里的歌曲时自动切换到当前列表播放”设置导致的崩溃问题

This commit is contained in:
lyswhut 2022-02-26 16:56:36 +08:00
parent e214105cfe
commit d344dbe2e4

View File

@ -128,8 +128,8 @@ export default memo(({
if (isMultiSelectModeRef.current) {
handleSelect(item, index)
} else {
if (isClickPlayList) {
onPlayList(index)
if (isClickPlayList && typeof onPlayList == 'function') {
onPlayList(index, item)
} else {
handlePlay(item, index)
}