mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-15 12:13:50 +08:00
feat: fix the application edit page bug due to this.props.location.search (#1055)
This commit is contained in:
@ -504,8 +504,6 @@ class LoginPage extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
renderSignedInBox() {
|
renderSignedInBox() {
|
||||||
const params = new URLSearchParams(this.props.location.search);
|
|
||||||
const silentSignin = params.get("silentSignin");
|
|
||||||
if (this.props.account === undefined || this.props.account === null) {
|
if (this.props.account === undefined || this.props.account === null) {
|
||||||
if (window !== window.parent) {
|
if (window !== window.parent) {
|
||||||
const message = {tag: "Casdoor", type: "SilentSignin", data: "user-not-logged-in"};
|
const message = {tag: "Casdoor", type: "SilentSignin", data: "user-not-logged-in"};
|
||||||
@ -518,6 +516,8 @@ class LoginPage extends React.Component {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const params = new URLSearchParams(this.props.location.search);
|
||||||
|
const silentSignin = params.get("silentSignin");
|
||||||
if (silentSignin !== null) {
|
if (silentSignin !== null) {
|
||||||
if (window !== window.parent) {
|
if (window !== window.parent) {
|
||||||
const message = {tag: "Casdoor", type: "SilentSignin", data: "signing-in"};
|
const message = {tag: "Casdoor", type: "SilentSignin", data: "signing-in"};
|
||||||
|
Reference in New Issue
Block a user