Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import Vuex from '@wepy/x';
export default new Vuex.Store({
state: {
counter: 0
},
mutations: {
increment (state) {
state.counter++;
},
decrement (state) {
state.counter--;
}
},
actions: {
increment ({ commit }) {
commit('increment');
},
decrement ({ commit }) {