react监听路由变化

this.props.history.listen(route => {
    console.log(route)
})

  

 
posted @ 2020-04-20 16:44  飞翔蓝天的小猪  阅读(4167)  评论(1编辑  收藏  举报