0๐
โ
1) Remove the params object, it should be just object
2) You are declaring variables in wrong way, it should be like this โ un:this.un
axios.post(`http://localhost:8000/register`, {
un: this.un,
fn: this.fn,
ln: this.ln
}).then(function (response) {
console.log(response.data);
});
Source:stackexchange.com