跳过空白歌词

This commit is contained in:
lyswhut
2022-04-10 22:11:42 +08:00
parent 729ac5a0d7
commit 1c542a9b17
3 changed files with 11 additions and 4 deletions
+1
View File
@@ -201,6 +201,7 @@ export default {
lrcInfo.lxlyric = ''
}
lrcInfo.lyric = lrcInfo.lyric.replace(lrcTools.rxps.wordTimeAll, '')
if (!lrcInfo.lyric.trim()) return Promise.reject(new Error('Get lyric failed'))
// console.log(lrcInfo)
return lrcInfo
})