import Vue from 'vue'
import Vuex from 'vuex'
import user from './modules/user'
import chart from './modules/chart'
import report from './modules/report'
import project from './modules/project'
import patent from './modules/patent'
import analyse from './modules/analyse'
import permission from './modules/permission'
import getters from './getters'
import dictMessage from "./modules/dictMessage"
import contextMenu from './modules/contextMenu'
import highlight from './modules/highlight'

import persisPlugin from './persisPlugin'
import createPersistedState from 'vuex-persistedstate'
Vue.use(Vuex)

export default new Vuex.Store({
  modules: {
    user,
    chart,
    report,
    project,
    analyse,
    permission,
    patent,
    dictMessage,
    contextMenu,
    highlight
  },
  getters,
  plugins:[createPersistedState(), ]
})
