17 lines
258 B
JavaScript
17 lines
258 B
JavaScript
const errorLog = {
|
|
state: {
|
|
logs: []
|
|
},
|
|
mutations: {
|
|
ADD_ERROR_LOG: (state, log) => {
|
|
state.logs.push(log)
|
|
}
|
|
},
|
|
actions: {
|
|
addErrorLog({ commit }, log) {
|
|
commit('ADD_ERROR_LOG', log)
|
|
}
|
|
}
|
|
}
|
|
|
|
export default errorLog
|