| 123456789101112131415161718 |
- export const state = () => ({
- list: {
- fetching: false,
- data: []
- }
- })
- export const mutations = {
- REQUEST_LIST (state) {
- state.list.fetching = true
- },
- GET_LIST_FAILURE (state) {
- state.list.fetching = false
- },
- GET_LIST_SUCCESS (state, result) {
- state.list.fetching = false
- state.list.data = result
- }
- }
|