Commit 41c8e399 by zhanghaozhe

微信登录无痕验证bug

parent d768de5a
...@@ -89,9 +89,9 @@ class App extends Component { ...@@ -89,9 +89,9 @@ class App extends Component {
this.setNavigationRecord(location, action) this.setNavigationRecord(location, action)
this.utm() this.utm()
if (cookie.get('uid') && this.props.user.hasError) { // if (cookie.get('uid') && this.props.user.hasError) {
this.getUser() // this.getUser()
} // }
if (location.pathname.startsWith('/passport')) { if (location.pathname.startsWith('/passport')) {
window.localStorage.setItem( window.localStorage.setItem(
'binding_redirect', 'binding_redirect',
...@@ -340,7 +340,6 @@ class App extends Component { ...@@ -340,7 +340,6 @@ class App extends Component {
}) })
} }
setPreviousLocation = () => { setPreviousLocation = () => {
const {location} = this.props const {location} = this.props
let isInBlacklist = this.pathnameBlacklist.some(item => location.pathname.startsWith(item)) let isInBlacklist = this.pathnameBlacklist.some(item => location.pathname.startsWith(item))
......
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