From 065e302f67c0b32332ef076d0c9ef460a8f4e469 Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Fri, 17 Mar 2023 11:06:27 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=88=20perf:=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/login/login.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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); }