From 5ce9c3689a2fd3c635705dab9649144e9a9dcc7b Mon Sep 17 00:00:00 2001 From: qier222 <68148142+qier222@users.noreply.github.com> Date: Sat, 24 Oct 2020 16:13:31 +0800 Subject: [PATCH] feat: add "Show Playlists by Apple Music" to settings page --- src/views/home.vue | 5 ++++- src/views/settings.vue | 28 ++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/src/views/home.vue b/src/views/home.vue index f38f3ab..688ac8b 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -1,6 +1,6 @@ @@ -113,6 +129,18 @@ export default { }); }, }, + showPlaylistsByAppleMusic: { + get() { + if (this.settings.showPlaylistsByAppleMusic === undefined) return true; + return this.settings.showPlaylistsByAppleMusic; + }, + set(value) { + this.$store.commit("updateSettings", { + key: "showPlaylistsByAppleMusic", + value, + }); + }, + }, }, methods: { logout() {