跳转
// 引入router 新版本是import { history } from 'umi';
import router from 'umi/router';
// 法一
// 跳转页面/xxx/xxx/xxx,参数params,
router.push('/xxx' + id`); // 或者history .push('/xxx'+id)
// 法二
router.push({
pathname:'/xxx',
query:{
id: 'id',
name: 'qmz'
},
hash: xxx,
state:xxx
}); // 路由 '/xxx'?id=id&name='qmz'
接收参数
this.props.location.query