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

This commit is contained in:
lyswhut
2021-07-23 16:14:56 +08:00
parent 3a5cb3f7c2
commit 56af57c682
2 changed files with 3 additions and 0 deletions
+2
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