import Vue from 'vue';
import Vuex from 'vuex';
import * as ustate from './user/state';
import * as umutations from './user/mutations';
import registers from './registers';
import department from './department';
import level from './level';
import staff from './staff';
import expert from './expert';
import login from './login';
import user from './user';
import news from './news';
Vue.use(Vuex);

export default new Vuex.Store({
  state: { ...ustate },
  mutations: { ...umutations },
  actions: {},
  modules: {
    registers,
    login,
    department,
    level,
    staff,
    expert,
    user,
    news,
  },
});
