Commit 27d439a8 by zhanghaozhe

登录返回首页问题

parent b146fcdc
...@@ -200,7 +200,6 @@ class App extends Component { ...@@ -200,7 +200,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(location)
} }
transformUser = res => { transformUser = res => {
......
...@@ -33,7 +33,7 @@ class Login extends Component { ...@@ -33,7 +33,7 @@ class Login extends Component {
hash: '' hash: ''
}; };
const referrer = document.referrer const referrer = document.referrer
const redirectURI = referrer ? referrer : window.location.origin + from.pathname + from.search + from.hash; const redirectURI = (!/^https?:\/\/m.julyedu.com\/?$/.test(referrer) && referrer) ? referrer : window.location.origin + from.pathname + from.search + from.hash;
switch (method) { switch (method) {
case '账号登录': case '账号登录':
......
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