改回 pickedLyric() 逻辑

This commit is contained in:
是虹川飴 2021-11-06 22:55:49 +08:00
parent 4e8f8953f9
commit 843b4c5cba

View File

@ -200,10 +200,10 @@ export default {
if (this.lyric === undefined) return '';
let lyric = this.lyric.split('\n');
lyric = lyric.filter(l => {
if (!l.includes('作词')) {
return true;
}
if (l.includes('作词') || l.includes('作曲')) {
return false;
}
return true;
});
let lineIndex = randomNum(0, lyric.length - 1);
while (lineIndex + 4 > lyric.length) {