react
1 .跳转方式加传参
this.props.history.push({ //地址 pathname: '/film/Details', //路由传参--对象 query: { id, from: '' } });
2.跳转Link
import { Link } from 'react-router-dom'; <Link exact="true" to="/login" className="user"> <i className="icon iconfont icon-geren"></i> </Link>