fix: bugs

This commit is contained in:
qier222 2021-05-18 15:54:51 +08:00
parent ad0c585371
commit 41a30a25c0
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
11 changed files with 315 additions and 33 deletions

View file

@ -238,6 +238,7 @@ export default {
this.$router.push({ path: '/library/liked-songs' });
},
getRandomLyric() {
if (this.liked.songs.length === 0) return;
getLyric(
this.liked.songs[randomNum(0, this.liked.songs.length - 1)]
).then(data => {