Skip to content

Instantly share code, notes, and snippets.

@1c7
Last active August 28, 2018 13:19
Show Gist options
  • Save 1c7/35d93611bb68066e34c76fe71ce4a4d3 to your computer and use it in GitHub Desktop.
Save 1c7/35d93611bb68066e34c76fe71ce4a4d3 to your computer and use it in GitHub Desktop.
Ant-Design-Pro 路由跳转例子(2018-8-26)
import { routerRedux } from 'dva/router';
export default class Analysis extends Component {
// ==============
toUserList = () => {
const { dispatch } = this.props;
dispatch(routerRedux.push('/list/user-list'));
};
// ==============
render(){
//.... onClick={()=>this.toUserList()}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment