mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2025-03-06 02:05:20 +08:00
改回 pickedLyric() 逻辑
This commit is contained in:
parent
4e8f8953f9
commit
843b4c5cba
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user