|
@@ -111,6 +111,9 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
...mapActions([
|
|
...mapActions([
|
|
'increment' // this.increment()을 this.$store.dispatch('increment')에 매핑
|
|
'increment' // this.increment()을 this.$store.dispatch('increment')에 매핑
|
|
|
|
+
|
|
|
|
+ // mapActions는 페이로드를 지원합니다.
|
|
|
|
+ 'incrementBy' // this.incrementBy(amount)를 this.$store.dispatch('incrementBy', amount)에 매핑
|
|
]),
|
|
]),
|
|
...mapActions({
|
|
...mapActions({
|
|
add: 'increment' // this.add()을 this.$store.dispatch('increment')에 매핑
|
|
add: 'increment' // this.add()을 this.$store.dispatch('increment')에 매핑
|