fix change pass call api
This commit is contained in:
parent
f40c3eca9f
commit
0bb41bef76
|
@ -19,7 +19,11 @@ const ModalPassword = (props) => {
|
|||
'Content-Type': 'application/json',
|
||||
'Authorization': Store.getState().isLogin.access_token,
|
||||
}
|
||||
const result = await axios.patch(`${HOST}/api/users/${obj_id}/password`,{headers} ,{ password: form.getFieldValue('password') })
|
||||
const result = await axios.patch(
|
||||
`${HOST}/api/users/${obj_id}/password`,
|
||||
{password: form.getFieldValue("password")},
|
||||
{headers},
|
||||
);
|
||||
if (result.data.status === 10000) {
|
||||
swal({
|
||||
icon: 'success',
|
||||
|
|
Loading…
Reference in New Issue
Block a user