import Vue from 'vue';
import Vuex from 'vuex';
import tabBar from './modules/tabBar.js';
import getters from './getters.js';

Vue.use(Vuex);

const store = new Vuex.Store({
	modules: {
		tabBar
	},
	getters
	// state: {
	// 	userInfo: {
	// 	  avatarUrl: '',
	// 	},
	// },
	// mutations: {
	// 	setUserInfo(state, userInfo) {
	// 	  state.userInfo = {...state.userInfo, ...userInfo};
	// 	},
	// }
})

export default store;