From f1b945caea248daad53042b3e5c7b7f4398e5c5d Mon Sep 17 00:00:00 2001 From: duynhana1 Date: Fri, 12 Apr 2019 21:40:50 +0300 Subject: [PATCH] improve AppSwitch with computed getter and setter Here is an example in Vuex docs https://vuex.vuejs.org/guide/forms.html#two-way-computed-property --- components/AppSwitch.vue | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/components/AppSwitch.vue b/components/AppSwitch.vue index f2eb205..e5746e6 100644 --- a/components/AppSwitch.vue +++ b/components/AppSwitch.vue @@ -2,7 +2,7 @@

Only Show Sale Items

- + @@ -12,19 +12,14 @@