import Vue from 'vue'
import Vuex from 'vuex'
import Store from '../../lib/store/index'

// 引入自定义子模块
// import commonModule from './modules/defaultModule'

Vue.use(Vuex)

Store.state = {
    ...(Store.state),
    // ...(commonModule.state)
}

Store.actions = {
    ...(Store.actions),
    // ...(commonModule.actions)
}

Store.mutations = {
    ...(Store.mutations),
    // ...(commonModule.mutations)
}


let _store = new Vuex.Store(Store)
export default _store
