修复有歌词翻译与无歌词的音乐间切换会导致歌词翻译残留显示的问题

This commit is contained in:
lyswhut
2020-11-22 11:06:45 +08:00
parent 3535bb4e4e
commit 95f38e8048
3 changed files with 4 additions and 14 deletions
+1 -1
View File
@@ -279,7 +279,7 @@ export default {
rendererSend(NAMES.winLyric.close)
},
setLyric() {
window.lrc.setLyric((this.isShowLyricTransition && this.lyrics.tlyric ? this.lyrics.tlyric + '\n' : '') + this.lyrics.lyric)
window.lrc.setLyric((this.isShowLyricTransition && this.lyrics.tlyric ? (this.lyrics.tlyric + '\n') : '') + (this.lyrics.lyric || ''))
},
},
}