This repository has been archived on 2021-09-06. You can view files and clone it, but cannot push or open issues or pull requests.
2021-05-04 21:49:40 +02:00
|
|
|
<template>
|
2021-05-04 23:00:27 +02:00
|
|
|
<button @click="increment">Add 1</button>
|
|
|
|
<button @click="increase({ value: 13 })">Add 13</button>
|
2021-05-04 21:49:40 +02:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2021-05-04 23:00:27 +02:00
|
|
|
import { mapActions } from 'vuex';
|
|
|
|
|
2021-05-04 21:49:40 +02:00
|
|
|
export default {
|
|
|
|
methods: {
|
2021-05-05 13:37:48 +02:00
|
|
|
...mapActions('counter', ['increment', 'increase'])
|
2021-05-04 21:49:40 +02:00
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|