feat: fix the bug that spin is always showing when response error (#1424)

This commit is contained in:
Yaodong Yu
2022-12-24 17:55:36 +08:00
committed by GitHub
parent 6ea73e3eca
commit 86ae97d1e5
2 changed files with 4 additions and 0 deletions

View File

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