mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 05:10:19 +08:00
Support from link.
This commit is contained in:
@ -441,6 +441,7 @@ class App extends Component {
|
||||
|
||||
renderLoginIfNotLoggedIn(component) {
|
||||
if (this.state.account === null) {
|
||||
sessionStorage.setItem("from", window.location.pathname);
|
||||
return <Redirect to='/login' />
|
||||
} else if (this.state.account === undefined) {
|
||||
return null;
|
||||
|
Reference in New Issue
Block a user