18 lines
258 B
JavaScript
18 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
|