12345678910111213141516171819 |
- export const state = () => ({
- serviceData: {
- fetching: false,
- data: []
- }
- })
- export const mutations = {
- REQUEST_SERVICEDATA (state) {
- state.serviceData.fetching = true
- },
- GET_SERVICEDATA_FAILURE (state) {
- state.serviceData.fetching = false
- },
- GET_SERVICEDATA_SUCCESS (state, result) {
- state.serviceData.fetching = false
- state.serviceData.data = result
- }
- }
|