diff --git a/src/pages/login/login.js b/src/pages/login/login.js index 651a162f..66651a02 100644 --- a/src/pages/login/login.js +++ b/src/pages/login/login.js @@ -16,7 +16,6 @@ export default class App extends Component { } componentWillMount() { - console.log(this.props.location); const tokenString = this.props.location.search; const token = tokenString.substring(tokenString.indexOf('=') + 1); /* 判断是否有token */ @@ -32,7 +31,7 @@ export default class App extends Component { toUnifiedLogin() { setTimeout(() => { window.location.href = `http://test.user.1688sup.com/#/login?url=${encodeURIComponent( - 'http://192.168.6.75:8088/#/login' + window.location.href )}`; }, 1500); } @@ -118,10 +117,8 @@ export default class App extends Component { }, (err) => { if (res.code == -2) { - this.toUnifiedLogin(); Notify.error(res.message); } else { - this.toUnifiedLogin(); Notify.clear(); Notify.error(res.message); }