feat: fix the bug that spin in oauth is always showing (#1421)

This commit is contained in:
Yaodong Yu 2022-12-23 15:06:51 +08:00 committed by GitHub
parent b8b915abe1
commit da69d94445
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,6 +96,7 @@ class LoginPage extends React.Component {
AuthBackend.getApplicationLogin(oAuthParams)
.then((res) => {
if (res.status === "ok") {
this.onUpdateApplication(res.data);
this.setState({
application: res.data,
});