import {vaildatePc} from '@/util/validate.js';
import Vue from 'vue'
import Vuex from 'vuex'

import getters from './getters'
import area from './modules/area'
import common from './modules/common'
import config from './modules/config'
import dict from './modules/dict'
import logs from './modules/logs'
import notice from './modules/notice'
import tags from './modules/tags'
import user from './modules/user'
import cmanageTitle from './modules/cmanageTitle'

Vue.use(Vuex)
const store = new Vuex.Store({
  state: {notPc: !vaildatePc()},
  modules: {user, common, logs, tags, dict, area, notice, config, cmanageTitle},
  getters,
})

export default store
