export const state = () => ({ listData: { fetching: false, data: [] } }) export const mutations = { REQUEST_SEARCHLIST (state) { state.listData.fetching = true }, GET_SEARCHLIST_FAILURE (state) { state.listData.fetching = false }, GET_SEARCHLIST_SUCCESS (state, result) { state.listData.fetching = false state.listData.data = result } }