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

Vue.use(Vuex)

const store = new Vuex.Store({
    state: {
        isLogin: false,
        luyou: 1,
        nCount:0,
        userInfo: {},
        api: 'https://api.laodong.cocorobo.cn/edu/',
        // api: 'http://localhost:7003/edu/',
        yingshuo: 'https://api.laodong.cocorobo.cn/yingshuoadmin/'
    },

    mutations: {
        update(state, [key, value]) {
            state[key] = value;
        },
    }
})

export default store