mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2025-03-06 02:05:20 +08:00
修复 issues #1019
This commit is contained in:
parent
df9e1369a1
commit
876a88ea76
@ -200,10 +200,10 @@ export default {
|
|||||||
if (this.lyric === undefined) return '';
|
if (this.lyric === undefined) return '';
|
||||||
let lyric = this.lyric.split('\n');
|
let lyric = this.lyric.split('\n');
|
||||||
lyric = lyric.filter(l => {
|
lyric = lyric.filter(l => {
|
||||||
if (l.includes('作词') || l.includes('作曲')) {
|
if (!l.includes('作词')) {
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
return true;
|
return false;
|
||||||
});
|
});
|
||||||
let lineIndex = randomNum(0, lyric.length - 1);
|
let lineIndex = randomNum(0, lyric.length - 1);
|
||||||
while (lineIndex + 4 > lyric.length) {
|
while (lineIndex + 4 > lyric.length) {
|
||||||
@ -286,8 +286,8 @@ 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 => {
|
||||||
console.log(data + '歌词接口似乎会无限挂起');
|
if (data.lrc !== undefined && data.lrc.includes('作词'))
|
||||||
// if (data.lrc !== undefined) this.lyric = data.lrc.lyric;
|
this.lyric = data.lrc.lyric;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
openAddPlaylistModal() {
|
openAddPlaylistModal() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user