import { ActionTree , MutationTree } from 'vuex' ; import { ErrorLogState } from '@/types/interfaces' ; const ErrorState = { logs : [ ] , } ; const mutations = { ADD_ERROR_LOG : ( state , log ) => { state . logs . push ( log ) ; } , } ; const actions = { addErrorLog ( { commit } , log ) { commit ( 'ADD_ERROR_LOG' , log ) ; } , } ; export default { state : ErrorState , mutations , actions , } ;