Skip to content
Advertisement

Tag: vue.js

Pass $route as parameter in axios post request

So I have a vue project with a dashboard that contains many tests and i want to pass the test name as a parameter in an axios request when the user clicks on a button and gets redirected on another page. I already did the first part and passed the name of the test in route as a parameter name

Vue3 + Axios.post — data incorrectly serialized

Objective: send {“username”: myuser, “password”: mypswd} to an API endpoint so I can obtain a token for further interaction with the API. The code: All of the above seem to pass the post data incorrectly. Using Wireshark, when I examine the request, the data passed is [object Object] when I inspect the request packet. If I run the same call

Find most bought from array vue.js

I am trying to find which of the posts has the most bought… I’ve been trying for some time now, and this is my latest draft. I would really like to know if there is a smart way to do this through Vue js. Most of my struggles come from navigating the array. My first thought was to merge the

Advertisement