Skip to content

Commit

Permalink
BugFix: 双语歌词只显示一种语言
Browse files Browse the repository at this point in the history
  • Loading branch information
kenmingwang committed Oct 24, 2022
1 parent 8e78106 commit 9eff5de
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/utils/Data.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,13 @@ export const searchLyric = async (searchMID, setLyric) => {
setLyric('[00:00.000] 无法找到歌词,请手动搜索')
return
}
const data = json.lyric
// console.log(data)
setLyric(data)

let finalLrc = json.lyric

// Merge trans Lyrics
if( json.trans )
finalLrc = json.trans + '\n' + finalLrc

// console.log(finalLrc)
setLyric(finalLrc)
}

0 comments on commit 9eff5de

Please sign in to comment.