Skip to content

Commit 2527e56

Browse files
committed
use watch shorthand
1 parent 083e04a commit 2527e56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/data-fetching/Post.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default {
2626
this.fetchData()
2727
},
2828
watch: {
29-
'$route' () { this.fetchData() }
29+
'$route': 'fetchData'
3030
},
3131
methods: {
3232
fetchData () {

0 commit comments

Comments
 (0)