export const state = () => ({ processInfo: { fetching: false, data: [] } }) export const mutations = { REQUEST_PROCESSINFO (state) { state.processInfo.fetching = true }, GET_PROCESSINFO_SUCCESS (state, result) { state.processInfo.fetching = false state.processInfo.data = result }, GET_PROCESSINFO_FAILURE (state) { state.processInfo.fetching = false } }