import Util from '@/libs/util';
import Vue from 'vue';

const app = {
    state: {
        userInfo:{},
        chartHearData:{},
        iProject:5599
    },
    mutations: {
        getUserInfo(state,obj){
            state.userInfo = obj;
        },
        setChartHearData(state,obj){
            state.chartHearData = obj;
        },
        setIproject(state,data){
            state.iProject = data;
        }
    },
    actions: {
        getUserInfo({commit},obj){
            commit('getUserInfo',obj);
        },
        setChartHearData({commit},obj){
            commit('setChartHearData',obj);
        },
        setIproject({commit},data){
            commit('setIproject',data)
        }
    }
};

export default app;