Remove the wrapping data object from the response of login
This commit is contained in:
parent
4490cd0774
commit
dfb709d37e
|
|
@ -188,7 +188,7 @@ const reducer_userinfo = (state = defaultstate_userinfo, action) => {
|
||||||
__store.dispatch({
|
__store.dispatch({
|
||||||
type : actiontypes_userinfo.LOGIN_RESULT_SUCCESS,
|
type : actiontypes_userinfo.LOGIN_RESULT_SUCCESS,
|
||||||
parameters : {
|
parameters : {
|
||||||
username : resp.data.data.username,
|
username : resp.data.username,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
storeOptionalToken(resp);
|
storeOptionalToken(resp);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue