react 路由跳转刷新页面参数消失

 this.props.history.push({
          pathname: furl,
          search: 'ssr2'
        })

获取
const data = this.props.location.search  //地址栏截取
        console.log(data)
        const param = data.split('?')[1]
        console.log(param)

  

posted @ 2019-07-17 17:20  Webwhl  阅读(3371)  评论(0编辑  收藏  举报