1234567891011121314151617181920212223242526272829303132 |
- export const state = () => ({
- list: {
- fetching: false,
- data: []
- },
- list_v3: {
- 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
- },
- REQUEST_NEWLIST (state) {
- state.list_v3.fetching = true
- },
- GET_NEWLIST_FAILURE (state) {
- state.list_v3.fetching = false
- },
- GET_NEWLIST_SUCCESS (state, result) {
- state.list_v3.fetching = false
- state.list_v3.data = result
- }
- }
|