diff --git a/src/components/OnlineList/index.js b/src/components/OnlineList/index.js index 8b69dda..d828ae6 100644 --- a/src/components/OnlineList/index.js +++ b/src/components/OnlineList/index.js @@ -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) }