修复某些情况下所显示的歌词、封面图片与当前正在播放的歌曲不一致的问题

pull/590/head
lyswhut 2021-07-23 16:14:56 +08:00
parent 3a5cb3f7c2
commit 56af57c682
2 changed files with 3 additions and 0 deletions

View File

@ -1,3 +1,4 @@
### 修复
- 修复导入kg歌单最多只能加载100、500首歌曲的问题。注现在可以加载1000+首歌曲的歌单但出于未知原因会导致部分歌曲无法加载可能是无版权导致的目前酷狗码仍然最多只能加载500首歌
- 修复某些情况下所显示的歌词、封面图片与当前正在播放的歌曲不一致的问题

View File

@ -634,12 +634,14 @@ export default {
if (!this.musicInfo.img) {
this.getPic(targetSong).then(() => {
if (targetSong !== this.targetSong) return
this.musicInfo.img = targetSong.img
})
}
},
setLrc(targetSong) {
this.getLrc(targetSong).then(({ lyric, tlyric, lxlyric }) => {
if (targetSong !== this.targetSong) return
this.musicInfo.lrc = lyric
this.musicInfo.tlrc = tlyric
this.musicInfo.lxlrc = lxlyric