[improvement] optimize watch options (#4075)

This commit is contained in:
neverland
2019-08-09 11:54:42 +08:00
committed by GitHub
parent 854a91c384
commit 19cd2ed38e
12 changed files with 19 additions and 57 deletions

View File

@@ -40,9 +40,7 @@ export default createComponent({
watch: {
time: {
immediate: true,
handler() {
this.reset();
}
handler: 'reset'
}
},