2017-04-15 14:16:14 +00:00
|
|
|
import Vue from 'vue'
|
|
|
|
import Vuex from 'vuex'
|
|
|
|
|
2017-07-26 21:46:30 +00:00
|
|
|
import state from './state'
|
|
|
|
import mutations from './mutations'
|
|
|
|
import actions from './actions'
|
|
|
|
import getters from './getters'
|
2017-04-15 14:16:14 +00:00
|
|
|
|
2017-07-26 21:46:30 +00:00
|
|
|
Vue.use(Vuex)
|
2017-05-10 14:41:08 +00:00
|
|
|
|
2017-07-24 08:45:00 +00:00
|
|
|
export function createStore () {
|
|
|
|
return new Vuex.Store({
|
2017-07-26 21:46:30 +00:00
|
|
|
state,
|
|
|
|
actions,
|
|
|
|
mutations,
|
|
|
|
getters
|
2017-07-24 08:45:00 +00:00
|
|
|
})
|
|
|
|
}
|