Commit c51da8bf authored by xiaohuoni's avatar xiaohuoni Committed by 偏右

redirect of different origins will be ignored

parent 831f9ea0
...@@ -33,8 +33,7 @@ export default { ...@@ -33,8 +33,7 @@ export default {
redirect = redirect.substr(redirect.indexOf('#') + 1); redirect = redirect.substr(redirect.indexOf('#') + 1);
} }
} else { } else {
window.location.href = redirect; redirect = null;
return;
} }
} }
yield put(routerRedux.replace(redirect || '/')); yield put(routerRedux.replace(redirect || '/'));
......
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