feat: fix the application edit page bug due to this.props.location.search (#1055)

This commit is contained in:
wenxuan70 2022-08-22 15:13:58 +08:00 committed by GitHub
parent 2d3d1167bb
commit 267833d9f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -504,8 +504,6 @@ class LoginPage extends React.Component {
}
renderSignedInBox() {
const params = new URLSearchParams(this.props.location.search);
const silentSignin = params.get("silentSignin");
if (this.props.account === undefined || this.props.account === null) {
if (window !== window.parent) {
const message = {tag: "Casdoor", type: "SilentSignin", data: "user-not-logged-in"};
@ -518,6 +516,8 @@ class LoginPage extends React.Component {
return null;
}
const params = new URLSearchParams(this.props.location.search);
const silentSignin = params.get("silentSignin");
if (silentSignin !== null) {
if (window !== window.parent) {
const message = {tag: "Casdoor", type: "SilentSignin", data: "signing-in"};