Skip to content

Commit 35ca70a

Browse files
committed
chore: fix composition counter example
1 parent f79b0dc commit 35ca70a

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

examples/composition/counter/Counter.vue

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,11 @@ export default {
1919
return {
2020
count: computed(() => store.state.count),
2121
evenOrOdd: computed(() => store.getters.evenOrOdd),
22-
// increment: () => store.dispatch('increment'),
22+
increment: () => store.dispatch('increment'),
2323
decrement: () => store.dispatch('decrement'),
2424
incrementIfOdd: () => store.dispatch('incrementIfOdd'),
2525
incrementAsync: () => store.dispatch('incrementAsync')
2626
}
27-
},
28-
29-
methods: {
30-
increment () {
31-
this.$store.dispatch('increment')
32-
}
3327
}
3428
}
3529
</script>

0 commit comments

Comments
 (0)