12345678910111213141516171819 |
- export const state = () => ({
- infoData: {
- fetching: false,
- data: []
- }
- })
- export const mutations = {
- REQUEST_INFODATA (state) {
- state.infoData.fetching = true
- },
- GET_INFODATA_FAILURE (state) {
- state.infoData.fetching = false
- },
- GET_INFODATA_SUCCESS (state, result) {
- state.infoData.fetching = false
- state.infoData.data = result
- }
- }
|