mutations.js 373 Bytes
import * as Types from './types';

export default {
  [Types.FETCH_YOHO_COUPON_REQUEST](state) {
    state.fetching = true;
  },
  [Types.FETCH_YOHO_COUPON_SUCCESS](state, {list, filter, type}) {
    state.fetching = false;
    state.yohoList[type] = list;
    state.filterList = filter;
  },
  [Types.FETCH_YOHO_COUPON_FAILED](state) {
    state.fetching = false;
  },
};