import { shareGoods } from "../../../services/index"; import Config from "../../../utils/config"; export default { state: {}, reducers: { updateState(state, { payload }) { return { ...state, ...payload }; } }, effects: { *shareGoods({ payload }, { call, put }) { const ret = yield call(shareGoods, payload); if (ret.code === Config.constant.codeSuccess) { } else if (ret.code === Config.constant.codeNoDate) { } } }, subscriptions: { // setupHistory({ dispatch, history }) { // history.listen(location => {}); // }, } };