12345678910111213141516171819 |
- export const state = () => ({
- attach: {
- fetching: false,
- data: []
- }
- })
- export const mutations = {
- REQUEST_ATTACH (state) {
- state.attach.fetching = true
- },
- GET_ATTACH_SUCCESS (state, result) {
- state.attach.data = result
- state.attach.fetching = false
- },
- GET_ATTACH_FAILURE (state) {
- state.attach.fetching = false
- }
- }
|