提交 46c73032 编写于 作者: View Design's avatar View Design

Update switch.vue

上级 ebf885fb
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
}, },
watch: { watch: {
value (val) { value (val) {
if (val !== this.trueValue && val !== this.falseValue) { if (val !== this.trueValue && val !== this.falseValue && val !== null) {
throw 'Value should be trueValue or falseValue.'; throw 'Value should be trueValue or falseValue.';
} }
this.currentValue = val; this.currentValue = val;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册