1.獲取路由 this.props.location.pathname
2.進(jìn)行路由跳轉(zhuǎn) this.props.history.push({pathname :"/meet"})
3.獲取動(dòng)態(tài)路由參數(shù) this.props.match.params.users
路由傳參 this.props.history.push({pathname :"/device/list",query:{data:item})
接收路由傳過(guò)去的參數(shù) const {data}=this.props.location.query;