1. 在要跳转页面添加<Link to={{ pathname: `/staffManagement/cardRecord`, state: {time: YYYY-MM-dd, name: staffName} }}>text </Link>
 
2. 在跳转到的页面使用 this.props.location.state.time 取到路由中传过来的参数

相关文章:

  • 2021-09-06
  • 2021-09-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-23
  • 2021-12-06
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2023-02-13
  • 2022-12-23
相关资源
相似解决方案