Commit 99176958 by xuzhenghua

Merge branch 'utm' of gitlab.julyedu.com:baiguangyao/mr-julyedu into pre

parents bd49ef3d 1774675f
......@@ -55,10 +55,11 @@ class App extends Component {
}
this.getUser()
this.utm()
const routeMatchRule = /binding-tel|forgot|set-password/
const {history} = this.props
history.listen((location) => {
this.utm()
this.setNavigationRecord(location)
if (cookie.get('uid') && this.props.user.hasError) {
this.getUser()
......@@ -150,7 +151,6 @@ class App extends Component {
}
componentDidUpdate() {
this.utm()
const {location} = this.props
this.previousLocation = location.pathname.startsWith('/passport') ?
this.previousLocation.pathname === '/' ? location : this.previousLocation : location
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment