| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- export const state = () => ({
- counts: {
- fetching: false,
- data: []
- },
- collectSave: {
- fetching: false,
- data: []
- },
- collectList: {
- fetching: false,
- data: []
- },
- collectListMobile: {
- fetching: false,
- data: []
- },
- publishMobile: {
- fetching: false,
- data: []
- }
- })
- export const mutations = {
- REQUEST_COUNTS (state) {
- state.counts.fetching = true
- },
- GET_COUNTS_FAILURE (state) {
- state.counts.fetching = false
- },
- GET_COUNTS_SUCCESS (state, result) {
- state.counts.fetching = false
- state.counts.data = result
- },
- REQUEST_COLLECTSAVA (state) {
- state.collectSave.fetching = true
- },
- GET_COLLECTSAVA_FAILURE (state) {
- state.collectSave.fetching = false
- },
- GET_COLLECTSAVA_SUCCESS (state, result) {
- state.collectSave.fetching = false
- state.collectSave.data = result
- },
- REQUEST_COLLECTLIST (state) {
- state.collectList.fetching = true
- },
- GET_COLLECTLIST_FAILURE (state) {
- state.collectList.fetching = false
- },
- GET_COLLECTLIST_SUCCESS (state, result) {
- state.collectList.fetching = false
- state.collectList.data = result
- },
- REQUEST_COLLECT_LIST (state) {
- state.collectListMobile.fetching = true
- },
- GET_COLLECT_LIST_FAILURE (state) {
- state.collectListMobile.fetching = false
- },
- GET_COLLECT_LIST_SUCCESS (state, result) {
- state.collectListMobile.fetching = false
- state.collectListMobile.data = result
- },
- REQUEST_PUBLISH_MOBILE (state) {
- state.publishMobile.fetching = true
- },
- GET_PUBLISH_MOBILE_FAILURE (state) {
- state.publishMobile.fetching = false
- },
- GET_PUBLISH_MOBILE_SUCCESS (state, result) {
- state.publishMobile.fetching = false
- state.publishMobile.data = result
- }
- }
|