mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 13:17:46 +00:00
fix: bugs
This commit is contained in:
parent
de7d008c0b
commit
967a7165ac
8 changed files with 39 additions and 27 deletions
|
|
@ -174,7 +174,20 @@ export default {
|
|||
});
|
||||
},
|
||||
activated() {
|
||||
this.loadData();
|
||||
if (!this.data.likedSongPlaylistID) {
|
||||
userPlaylist({
|
||||
uid: this.data.user.userId,
|
||||
limit: 1,
|
||||
}).then((data) => {
|
||||
this.updateData({
|
||||
key: "likedSongPlaylistID",
|
||||
value: data.playlist[0].id,
|
||||
});
|
||||
this.loadData();
|
||||
});
|
||||
} else {
|
||||
this.loadData();
|
||||
}
|
||||
dailyTask();
|
||||
},
|
||||
computed: {
|
||||
|
|
@ -204,7 +217,7 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
...mapActions(["showToast"]),
|
||||
...mapMutations(["updateModal"]),
|
||||
...mapMutations(["updateModal", "updateData"]),
|
||||
playLikedSongs() {
|
||||
this.$store.state.player.playPlaylistByID(
|
||||
this.playlists[0].id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue