修复原始歌词存在偏移时,歌词偏移设置的重置未按预期工作的问题

This commit is contained in:
lyswhut
2022-05-09 14:07:31 +08:00
parent e859d39b2b
commit 784515e411
7 changed files with 43 additions and 24 deletions
+1
View File
@@ -7,6 +7,7 @@ export const musicInfo = window.musicInfo = reactive({
lrc: null,
tlrc: null,
lxlrc: null,
rawlrc: null,
url: null,
name: '',
singer: '',
@@ -135,7 +135,7 @@ export default ({ setting }) => {
}
}
const setLrc = (targetSong) => {
getLrc(targetSong).then(({ lyric, tlyric, lxlyric }) => {
getLrc(targetSong).then(({ lyric, tlyric, lxlyric, rawInfo }) => {
if (targetSong.songmid !== musicInfo.songmid) return
return (
setting.value.player.isS2t
@@ -150,6 +150,7 @@ export default ({ setting }) => {
lrc: lyric,
tlrc: tlyric,
lxlrc: lxlyric,
rawlrc: rawInfo.lyric,
})
})
}).catch((err) => {
@@ -213,6 +214,7 @@ export default ({ setting }) => {
lrc: null,
tlrc: null,
lxlrc: null,
rawlrc: null,
url: null,
name: '',
singer: '',