分离歌词与歌曲列表信息的保存

This commit is contained in:
lyswhut
2021-04-03 20:26:28 +08:00
parent b8250b67c9
commit 4918db9cb1
11 changed files with 74 additions and 30 deletions
+4 -4
View File
@@ -646,10 +646,10 @@ export default {
}
},
setLrc(targetSong) {
this.getLrc(targetSong).then(() => {
this.musicInfo.lrc = targetSong.lrc
this.musicInfo.tlrc = targetSong.tlrc
this.musicInfo.lxlrc = targetSong.lxlrc
this.getLrc(targetSong).then(({ lyric, tlyric, lxlyric }) => {
this.musicInfo.lrc = lyric
this.musicInfo.tlrc = tlyric
this.musicInfo.lxlrc = lxlyric
}).catch(() => {
this.status = this.statusText = this.$t('core.player.lyric_error')
}).finally(() => {