react.service专线内跳转,不刷新页面

* create({payload = {}}, {call, put, select}) {
      const {currentLineId} = yield select(_ => _.app)
      payload.address.speciaLineId = currentLineId
      const data = yield call(create, payload);
      if (data.success) {
        message.success("新增成功");
        yield put(routerRedux.push({
          pathname: '/customer/protection/flow',
          search : ""
        }))
      }else {
        message.error(data.message);
      }
    },

  区别于window.location.href="..."

posted @ 2019-11-05 16:18  忧伤还是快乐EL  阅读(212)  评论(0编辑  收藏  举报