Merge pull request #161 from kn007/patch-1

fix pic 继承问题
This commit is contained in:
DIYgod 2017-11-01 02:38:47 -05:00 committed by GitHub
commit af85763598
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -452,6 +452,9 @@ class APlayer {
if (this.music.pic) {
this.element.getElementsByClassName('aplayer-pic')[0].style.backgroundImage = `url('${this.music.pic}')`;
}
else {
this.element.getElementsByClassName('aplayer-pic')[0].style.backgroundImage = '';
}
this.element.getElementsByClassName('aplayer-title')[0].innerHTML = this.music.title;
this.element.getElementsByClassName('aplayer-author')[0].innerHTML = ` - ${this.music.author}`;
if (this.element.getElementsByClassName('aplayer-list-light')[0]) {