hn-vue/mynuxt/store/counter.js
2021-01-22 15:37:48 +01:00

10 lines
123 B
JavaScript

export const state = () => ({
value: 0
});
export const mutations = {
increment(state) {
state.value += 1;
}
};