mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 13:17:46 +00:00
feat: 当只有一句歌词且内容为'纯音乐,请欣赏'时,隐藏歌词面板 (#1205)
This commit is contained in:
parent
a87686098c
commit
73df7f28f4
1 changed files with 9 additions and 3 deletions
|
|
@ -327,9 +327,15 @@ export default {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
let { lyric, tlyric } = lyricParser(data);
|
let { lyric, tlyric } = lyricParser(data);
|
||||||
this.lyric = lyric;
|
if (lyric.length === 1 && lyric[0].content === '纯音乐,请欣赏') {
|
||||||
this.tlyric = tlyric;
|
this.lyric = [];
|
||||||
return true;
|
this.tlyric = [];
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
this.lyric = lyric;
|
||||||
|
this.tlyric = tlyric;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue