mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 05:08:04 +00:00
* issues #1019 的迫真修复 * 修复 issues #1019 * 修复 issues #1019 * 改回 pickedLyric() 逻辑
This commit is contained in:
parent
bb573d6dfd
commit
37f31d0516
1 changed files with 9 additions and 1 deletions
|
|
@ -286,7 +286,15 @@ export default {
|
|||
getLyric(
|
||||
this.liked.songs[randomNum(0, this.liked.songs.length - 1)]
|
||||
).then(data => {
|
||||
if (data.lrc !== undefined) this.lyric = data.lrc.lyric;
|
||||
if (data.lrc !== undefined) {
|
||||
let ifl = data.lrc.lyric.split('\n').filter(l => {
|
||||
if (l.includes('作词')) {
|
||||
this.lyric = data.lrc.lyric;
|
||||
return true + ifl;
|
||||
}
|
||||
return false;
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
openAddPlaylistModal() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue