Compare commits

..

1 Commits

Author SHA1 Message Date
Nguyễn Hải Dũng
0bb41bef76 fix change pass call api 2023-06-15 16:04:10 +07:00

View File

@@ -19,7 +19,11 @@ const ModalPassword = (props) => {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
'Authorization': Store.getState().isLogin.access_token, '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) { if (result.data.status === 10000) {
swal({ swal({
icon: 'success', icon: 'success',