修复播放列表为空时点击播放按钮会报错的问题

pull/930/merge
lyswhut 2022-01-01 16:26:17 +08:00
parent 6a79f8ec0d
commit 94f4c9e334
1 changed files with 1 additions and 0 deletions

View File

@ -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