react监听路由变化

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

  

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