Home Reference Source

src/store/index.js

import Vue from 'vue'
import Vuex from 'vuex'
import achievement from './achievement'
import auth from './auth'
import project from './project'
import blog from './blog'
import user from './user'
import smallgroup from './smallgroup'
import notification from './notification'

Vue.use(Vuex)

// A Vuex instance is created by combining the state, mutations, actions,
// and getters.
export default new Vuex.Store({
  modules: {
    auth,
    achievement,
    project,
    blog,
    user,
    smallgroup,
    notification
  }
})