Commit 7ddec4bf by zhanghaozhe

debug

parent a549ed4a
...@@ -190,7 +190,6 @@ class App extends Component { ...@@ -190,7 +190,6 @@ class App extends Component {
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))
!isInBlacklist && (this.previousLocation = location) !isInBlacklist && (this.previousLocation = location)
// console.log(this.previousLocation)
} }
transformUser = res => { transformUser = res => {
......
...@@ -86,7 +86,6 @@ class Passport extends Component { ...@@ -86,7 +86,6 @@ class Passport extends Component {
routeWhenUserLoggedIn = () => { routeWhenUserLoggedIn = () => {
let {hasError} = this.props.user let {hasError} = this.props.user
if (!hasError) { if (!hasError) {
console.log(this.count)
const redirectURI = getParam('redirect') const redirectURI = getParam('redirect')
redirectURI ? (window.location.href = redirectURI) : this.props.history.go(-this.count) redirectURI ? (window.location.href = redirectURI) : this.props.history.go(-this.count)
} }
......
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