From d344dbe2e40ea271f0774ca71ae747a2035a138a Mon Sep 17 00:00:00 2001 From: lyswhut Date: Sat, 26 Feb 2022 16:56:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E2=80=9C=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E9=87=8C=E7=9A=84=E6=AD=8C=E6=9B=B2=E6=97=B6?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=88=87=E6=8D=A2=E5=88=B0=E5=BD=93=E5=89=8D?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=92=AD=E6=94=BE=E2=80=9D=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E7=9A=84=E5=B4=A9=E6=BA=83=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/OnlineList/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) }