From b2012015daf6a5f7d5fd570e7da98ac099287cc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=81=8F?= Date: Thu, 9 Mar 2017 11:22:08 +0800 Subject: [PATCH] fixed Switch dispatch error 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 6ade16c0..58a28bd4 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: {