修复播放列表为空时点击播放按钮会报错的问题
parent
6a79f8ec0d
commit
94f4c9e334
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue