From cfbd9403ba80ae103a061e5899ba1343316a6e71 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Sun, 25 Oct 2020 10:23:31 +0100 Subject: [PATCH] fix change player volume --- src/App.vue | 6 ------ src/components/Main.vue | 15 +++++++-------- src/components/Navigation.vue | 8 +------- src/components/Player.vue | 7 ++----- src/store.js | 6 ++++++ 5 files changed, 16 insertions(+), 26 deletions(-) diff --git a/src/App.vue b/src/App.vue index 38704d5..4437b0a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,9 +1,3 @@ - - diff --git a/src/components/Main.vue b/src/components/Main.vue index 443f026..1c65b46 100644 --- a/src/components/Main.vue +++ b/src/components/Main.vue @@ -1,6 +1,6 @@ @@ -38,11 +37,6 @@ export default { AppNavigationItem, Player, }, - methods: { - changeVolume(volume) { - this.$emit('changeVolume', volume) - }, - }, } diff --git a/src/components/Player.vue b/src/components/Player.vue index 989ec1b..b8789e4 100644 --- a/src/components/Player.vue +++ b/src/components/Player.vue @@ -16,7 +16,7 @@ max="1" step=".05" :value="player.volume" - @input="changeVolume"> + @input="changeVolume($event)"> {{ player.volume }} @@ -24,9 +24,6 @@