mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 05:38:04 +00:00
* issues #1019 的迫真修复 * 修复 issues #1019 * 修复 issues #1019 * 改回 pickedLyric() 逻辑
This commit is contained in:
parent
e4298fdad6
commit
8341727882
1 changed files with 9 additions and 1 deletions
|
|
@ -286,7 +286,15 @@ export default {
|
||||||
getLyric(
|
getLyric(
|
||||||
this.liked.songs[randomNum(0, this.liked.songs.length - 1)]
|
this.liked.songs[randomNum(0, this.liked.songs.length - 1)]
|
||||||
).then(data => {
|
).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() {
|
openAddPlaylistModal() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue