From 0bbf8559be020f82286ae9e718fa176e67021bb5 Mon Sep 17 00:00:00 2001 From: Francisco Hanna Date: Sun, 3 Feb 2019 03:28:45 -0300 Subject: [PATCH] Update shuffledList on list prop changes Fixes #143 --- src/vue-aplayer.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/vue-aplayer.vue b/src/vue-aplayer.vue index 2a8c385e..8e1f1bf1 100644 --- a/src/vue-aplayer.vue +++ b/src/vue-aplayer.vue @@ -707,6 +707,10 @@ music (music) { this.internalMusic = music }, + + list() { + this.shuffledList = this.getShuffledList(); + }, currentMusic: { handler (music) { @@ -924,4 +928,4 @@ left: -100% } } - \ No newline at end of file +