路由返回上一页的方法
1.使用window自带的,window.go(-1)
2.react dva.js
先引入.routerRedux和connect

this.props.dispatch(routerRedux.goBack())
this.props.dispatch(routerRedux.push())
关于dispatch的使用,必须要用conenct绑定组件props才有dispatch方法。

1.使用window自带的,window.go(-1)
2.react dva.js
先引入.routerRedux和connect

this.props.dispatch(routerRedux.goBack())
this.props.dispatch(routerRedux.push())
关于dispatch的使用,必须要用conenct绑定组件props才有dispatch方法。
