Skip to content

Commit

Permalink
redirect of different origins will be ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohuoni authored and afc163 committed Mar 24, 2019
1 parent 831f9ea commit c51da8b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/models/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ export default {
redirect = redirect.substr(redirect.indexOf('#') + 1);
}
} else {
window.location.href = redirect;
return;
redirect = null;
}
}
yield put(routerRedux.replace(redirect || '/'));
Expand Down

0 comments on commit c51da8b

Please sign in to comment.