Fix renderSigninIfNotSignedIn()

This commit is contained in:
Yang Luo 2023-08-15 17:35:41 +08:00
parent bf22093cde
commit 032ee3a6b1
1 changed files with 1 additions and 1 deletions

View File

@ -340,7 +340,7 @@ class App extends Component {
renderSigninIfNotSignedIn(component) { renderSigninIfNotSignedIn(component) {
if (this.state.account === null) { if (this.state.account === null) {
sessionStorage.setItem("from", window.location.pathname); sessionStorage.setItem("from", window.location.pathname);
return <Redirect to="/signin" />; window.location.replace(Setting.getSigninUrl());
} else if (this.state.account === undefined) { } else if (this.state.account === undefined) {
return null; return null;
} else { } else {