mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-15 22:23:50 +08:00
feat: fix the bug that spin is always showing when response error (#1424)
This commit is contained in:
@ -102,6 +102,7 @@ class LoginPage extends React.Component {
|
||||
});
|
||||
} else {
|
||||
// Setting.showMessage("error", res.msg);
|
||||
this.onUpdateApplication(null);
|
||||
this.setState({
|
||||
application: res.data,
|
||||
msg: res.msg,
|
||||
@ -133,6 +134,7 @@ class LoginPage extends React.Component {
|
||||
applicationName: res.data.name,
|
||||
});
|
||||
} else {
|
||||
this.onUpdateApplication(null);
|
||||
Setting.showMessage("error", res.msg);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user