From 861125ea8cac76bae16990b688c17141677f2759 Mon Sep 17 00:00:00 2001 From: qier222 <68148142+qier222@users.noreply.github.com> Date: Wed, 14 Oct 2020 21:10:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug=E5=92=8C=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 20 ++++----- src/components/MvRow.vue | 6 ++- src/components/{BottomBar.vue => Player.vue} | 13 +++++- src/router/index.js | 3 ++ src/store/actions.js | 34 ++++++++------- src/store/initState.js | 1 - src/store/mutations.js | 3 -- src/utils/filters.js | 5 +++ src/utils/play.js | 4 +- src/views/album.vue | 2 +- src/views/artist.vue | 19 ++++++--- src/views/explore.vue | 3 ++ src/views/home.vue | 7 ++- src/views/library.vue | 8 +++- src/views/mv.vue | 14 +++--- src/views/playlist.vue | 45 +++++++++++--------- src/views/search.vue | 5 ++- 17 files changed, 120 insertions(+), 72 deletions(-) rename src/components/{BottomBar.vue => Player.vue} (95%) diff --git a/src/App.vue b/src/App.vue index 7859cab..922b417 100644 --- a/src/App.vue +++ b/src/App.vue @@ -8,39 +8,37 @@ - - + diff --git a/src/components/MvRow.vue b/src/components/MvRow.vue index d855770..e80c9b5 100644 --- a/src/components/MvRow.vue +++ b/src/components/MvRow.vue @@ -51,7 +51,11 @@ export default { }, methods: { goToMv(id) { - this.$router.push({ path: "/mv/" + id }); + let query = {}; + if (this.$parent.player !== undefined) { + query = { autoplay: this.$parent.player.playing }; + } + this.$router.push({ path: "/mv/" + id, query }); }, getUrl(mv) { if (mv.cover !== undefined) return mv.cover; diff --git a/src/components/BottomBar.vue b/src/components/Player.vue similarity index 95% rename from src/components/BottomBar.vue rename to src/components/Player.vue index 8318acc..f0c62b7 100644 --- a/src/components/BottomBar.vue +++ b/src/components/Player.vue @@ -104,6 +104,7 @@