import Vue from 'vue'

const config = {
    state: {
        basic: {},
        lazy: {},
        init: false,
    },

    mutations: {
        SET_CONFIG: (state, data) => {
            state.basic = data
            state.init = true
        },
        SET_LAZY: (state, data) => {
            Vue.set(state.lazy, data[0], data[1])
        },
    }
}

export default config
