mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/lyswhut/lx-music-desktop.git
synced 2026-09-20 08:04:00 +08:00
修复播放列表为空时点击播放按钮会报错的问题
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user