yield put(routerRedux.push( {
pathname: '/addressEdit',
data: {item:2},
}));
页面怎么取到data的值?
routerRedux实际上是react-router-redux的一个alias,你看官方文档就可以了https://github.com/reactjs/react-router-redux#pushlocation-replacelocation-gonumber-goback-goforward
push的参数是一个location, 并没有data属性,你可以通过query传递参数
Most helpful comment
routerRedux实际上是react-router-redux的一个alias,你看官方文档就可以了https://github.com/reactjs/react-router-redux#pushlocation-replacelocation-gonumber-goback-goforwardpush的参数是一个
location, 并没有data属性,你可以通过query传递参数