From 94f4c9e3342871ba9445e8c0038199e73aedc779 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Sat, 1 Jan 2022 16:26:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=92=AD=E6=94=BE=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E4=B8=BA=E7=A9=BA=E6=97=B6=E7=82=B9=E5=87=BB=E6=92=AD?= =?UTF-8?q?=E6=94=BE=E6=8C=89=E9=92=AE=E4=BC=9A=E6=8A=A5=E9=94=99=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/core/useApp/usePlayer/usePlayer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/renderer/core/useApp/usePlayer/usePlayer.js b/src/renderer/core/useApp/usePlayer/usePlayer.js index 1454d461..ca71fdfe 100644 --- a/src/renderer/core/useApp/usePlayer/usePlayer.js +++ b/src/renderer/core/useApp/usePlayer/usePlayer.js @@ -296,6 +296,7 @@ export default ({ setting }) => { // 播放、暂停播放切换 const handleTogglePlay = async() => { + if (playMusicInfo.musicInfo == null) return if (isPlayerEmpty()) { if (playMusicInfo.listId == 'download') { const musicInfo = playMusicInfo.musicInfo