Support from link.

This commit is contained in:
Yang Luo
2022-02-12 09:55:06 +08:00
parent 7391773f0e
commit 3aab6c8687
4 changed files with 15 additions and 2 deletions

View File

@ -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;