DIYgod / DIYgod/APlayer

当歌词为空时会有报错

Open
#283 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.7k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

#### 描述
第一首歌播放的过程中切换到第二首歌(第二首歌无歌词),将会报错。

#### 资源
```js
[
{
name: '星星点灯', // 本地资源
artist: '郑智化',
url: './xx.m4a',
cover: './xx.jpg',
lrc: './xx.lrc'
},
{
name: '天空之城', // 线上资源
artist: '久石让',
url: 'http://xx.mp3',
cover: '',
lrc: ''
}
]

```

#### 报错
Uncaught TypeError: Cannot read property 'classList' of undefined
![20190806112103](https://user-images.githubusercontent.com/24741025/62508966-0e5c7680-b83c-11e9-9fe6-cba2d48a5219.png)

#### 版本
1.10.1

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.