12345678910111213141516171819202122 |
- export const state = () => ({
- formData: {
- fetching: false,
- data: []
- }
- })
- export const mutations = {
- REQUEST_FORMDATA (state) {
- state.formData.fetching = true
- },
- GET_FORMDATA_FAILURE (state) {
- state.formData.fetching = false
- },
- GET_FORMDATA_SUCCESS (state, result) {
- state.formData.fetching = false
- state.formData.data = result
- },
- RESET_FORMDATA (state) {
- state.formData.data = []
- }
- }
|