组件嵌套了很多,传值过于麻烦,项目又着急,暂时粗暴一点解决~~~
毕竟先解决问题,再优化嘛

 componentDidMount() {
    this.props.history.listen(route => { 
      console.log(route.search.slice(4)); // 这个route里面有当前路由的各个参数信息 如果变化直接js强制操作刷新页面...~~
      // this.getSwiper(route.search.slice(4))
      window.scrollTo(0,0)
      window.location.reload();
    });
  }

相关文章:

  • 2021-12-02
  • 2021-07-17
  • 2022-12-23
  • 2022-12-23
  • 2021-08-17
  • 2022-12-23
猜你喜欢
  • 2021-11-26
  • 2022-12-23
  • 2022-12-23
  • 2021-08-09
  • 2022-12-23
  • 2021-11-11
  • 2022-12-23
相关资源
相似解决方案