[Vuejs]-How can post multible variable with axios?

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);
                });

Leave a comment