repo_description: renren-fast-vue基于vue、element-ui构建开发，实现renren-fast后台管理前端功能，提供一套更优的前端解决方案。
repo_topics: element-ui vue vue-admin vue-cli vue-element-admin
code: import Vue from 'vue'
  import Vuex from 'vuex'
  import cloneDeep from 'lodash/cloneDeep'
  import common from './modules/common'
  import user from './modules/user'
  
  Vue.use(Vuex)
  
  export default new Vuex.Store({
    modules: {
      common,
      user
    },
    mutations: {
      // 重置vuex本地储存状态
      resetStore (state) {
        Object.keys(state).forEach((key) => {
          state[key] = cloneDeep(window.SITE_CONFIG['storeState'][key])
        })
      }
    },
    strict: process.env.NODE_ENV !== 'production'
  })
  