From 5f4ccb80ef6b3d7db4c5487bd92eff4e80a17f8b Mon Sep 17 00:00:00 2001 From: lyswhut Date: Sun, 23 May 2021 16:16:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=93=E5=BC=80=E7=A9=BA?= =?UTF-8?q?=E7=9A=84=E6=AD=8C=E5=8D=95=E6=97=B6=EF=BC=8C=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E6=92=AD=E6=94=BE=E5=85=A8=E9=83=A8=E4=BC=9A=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E5=BA=94=E7=94=A8=E5=B4=A9=E6=BA=83=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- publish/changeLog.md | 2 +- src/screens/Home/SongList/ListDetail/ButtonBar.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/publish/changeLog.md b/publish/changeLog.md index 442be6562..c923ca01e 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -1,4 +1,4 @@ ### 修复 - 修复手机分享的wy歌单、某些tx、kg歌单无法打开的问题 - +- 修复打开空的歌单时,点击播放全部会导致应用崩溃的问题 diff --git a/src/screens/Home/SongList/ListDetail/ButtonBar.js b/src/screens/Home/SongList/ListDetail/ButtonBar.js index 5da13e091..5965758c8 100644 --- a/src/screens/Home/SongList/ListDetail/ButtonBar.js +++ b/src/screens/Home/SongList/ListDetail/ButtonBar.js @@ -20,6 +20,7 @@ export default memo(() => { const handlePlayAll = useCallback(async() => { if (!listDetailData.info.name) return const list = await getListDetailAll(selectListInfo.id) + if (!list.length) return setPlayList({ list: { list,