From b2012015daf6a5f7d5fd570e7da98ac099287cc2 Mon Sep 17 00:00:00 2001
From: 梁灏 <admin@aresn.com>
Date: Thu, 9 Mar 2017 11:22:08 +0800
Subject: [PATCH] fixed Switch dispatch error

---
 src/components/switch/switch.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/components/switch/switch.vue b/src/components/switch/switch.vue
index 6ade16c..58a28bd 100644
--- a/src/components/switch/switch.vue
+++ b/src/components/switch/switch.vue
@@ -60,7 +60,7 @@
                 this.currentValue = checked;
                 this.$emit('input', checked);
                 this.$emit('on-change', checked);
-                this.dispatch('FormItem', 'on-form-change', data.checked);
+                this.dispatch('FormItem', 'on-form-change', checked);
             }
         },
         watch: {
--
libgit2 0.21.4