1
0
mirror of synced 2024-11-29 00:26:12 +03:00
vue-formulario/example/store/index.js

27 lines
380 B
JavaScript
Raw Normal View History

import Vue from 'vue'
import Vuex from 'vuex'
import {formulateState, formulateGetters, formulateMutations} from 'vue-formulate'
Vue.use(Vuex)
const state = {
...formulateState()()
}
const getters = {
...formulateGetters()
}
const mutations = {
...formulateMutations()
}
const actions = {}
export default new Vuex.Store({
state,
getters,
mutations,
actions
})