审查视图

src/store/modules/errorLog.js 300 字节
朱兆平 authored
1
const errorLog = {
2 3 4 5 6 7 8 9 10 11 12 13
    state: {
        logs: []
    },
    mutations: {
        ADD_ERROR_LOG: (state, log) => {
            state.logs.push(log)
        }
    },
    actions: {
        addErrorLog({commit}, log) {
            commit('ADD_ERROR_LOG', log)
        }
朱兆平 authored
14 15 16 17
    }
}

export default errorLog