mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 12:30:19 +08:00
Fix getAccount() response.
This commit is contained in:
@ -105,16 +105,11 @@ class App extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
onLoggedIn() {
|
||||
this.getAccount();
|
||||
}
|
||||
|
||||
getAccount() {
|
||||
AuthBackend.getAccount()
|
||||
.then((res) => {
|
||||
const account = Setting.parseJson(res.data);
|
||||
this.setState({
|
||||
account: account,
|
||||
account: res.data,
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user