 import Vue from 'vue'
 import Vuex from 'vuex'

Vue.use(Vuex)
const store = new Vuex.Store({
    state: {
		yuyueData:'',
		carInfo:'',
		ckshopInfo:'',
	},
	getters:{
		getyuyueData(state){
			return state.yuyueData
	    },
	    getcarInfo(state){
	    	return state.carInfo
	    },
		getckshopInfo(state){
			return state.ckshopInfo
		},
    },
    mutations: {
		mutationsyuyueData(state,data){
			state.yuyueData=data
		},
		mutationscarInfo(state,data){
			state.carInfo=data
		},
		mutationsckshopInfo(state,data){
			state.ckshopInfo=data
		},
	},
    actions: {
		actionsyuyueData(context,playload){
			context.commit('mutationsyuyueData',playload)
		},
		actionscarInfo(context,playload){
			context.commit('mutationscarInfo',playload)
		},
		actionsckshopInfo(context,playload){
			context.commit('mutationsckshopInfo',playload)
		},
	}
})
export default store