// 監(jiān)聽只限于瀏覽器下的同窗口
import { withRouter } from 'react-router-dom';
class LawyerFunction extends React.Component {
? ? ????constructor(props){
????????}
? ? ? ? componentDidMount() {
? ? ? ? ? ? ? ? // 這個打印出來的參數(shù),'POP'就是瀏覽器回退 還有其他的參數(shù)PUSH啥的
? ? ? ? ?????????console.log(this.props.history.action)
? ? ????}
}
export default? withRouter(LawyerFunction);