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
@@ -73,8 +73,8 @@ export default createComponent({
},
watch: {
defaultIndex() {
this.setIndex(this.defaultIndex);
defaultIndex(val) {
this.setIndex(val);
}
},