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