let data = {
email: 'example@mail.ru',
password: '12345',
}
axios.post('https://example.com', {
params: data,
headers: {
'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8',
}
})
.then( res => {
//your code
})
.catch( err => {
//your code
})