12345678910111213141516171819 |
- export const state = () => ({
- update: {
- fetching: false,
- data: []
- }
- })
- export const mutations = {
- REQUEST_UPDATE (state) {
- state.update.fetching = true
- },
- GET_UPDATE_SUCCESS (state, result) {
- state.update.fetching = false
- state.update.data = result
- },
- GET_UPDATE_FAILURE (state) {
- state.update.fetching = false
- }
- }
|