chore: improve watcher

This commit is contained in:
陈嘉涵
2020-01-18 10:58:12 +08:00
parent f928063d6a
commit c895bf1739
6 changed files with 14 additions and 16 deletions
+2 -2
View File
@@ -66,8 +66,8 @@ export default createComponent({
},
watch: {
value() {
this.code = this.value;
value(val) {
this.code = val;
this.setValues();
},