fix change pass call api

This commit is contained in:
Nguyễn Hải Dũng 2023-06-15 16:04:10 +07:00
parent f40c3eca9f
commit 0bb41bef76

View File

@ -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',