15 lines
302 B
JavaScript
15 lines
302 B
JavaScript
|
import * as types from './mutations-types';
|
||
|
|
||
|
export const initialState = {
|
||
|
reports: [],
|
||
|
};
|
||
|
|
||
|
export const mutations = {
|
||
|
[types.STORE_REPORTS](state, { reports }) {
|
||
|
state.reports = reports;
|
||
|
},
|
||
|
[types.PUSH_REPORT](state, { report }) {
|
||
|
state.reports.push(report);
|
||
|
},
|
||
|
};
|