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

export default {
  [Types.FETCH_UFO_UPLOAD_TOKEN_SUCCESS](state, {token}) {
    state.token = token;
  },

  [Types.FETCH_UFO_STATUS_SUCCESS](state, {status, message}) {
    state.status = status;
    state.message = message;
  },

  [Types.FETCH_UFO_NEED_LOGIN](state, data) {
    state.needLogin = data;
  }
};