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="..."

原文地址:https://www.cnblogs.com/notchangeworld/p/11799225.html