Axios get request parameter problem

clipboard.png

clipboard.png

clipboard.png

clipboard.png

clipboard.png

axios
clipboard.png
turns out that there are too many requests? params=.
and you can request data by using axios.get directly. What is the reason for this? is it because I am blocking the problem?

Mar.09,2021

this is the browser that extracts the parameters of get for you to observe.


the parameters of the get request are originally written in url, but the splicing work is done by axios for you.


the 400th parameter you returned is incorrect, which is due to the problem with the parameter query you passed.
you can request data using axios.get, because the parameter you pass is id=xxxxxx
and the parameter you pass using getRequest, becomes params: {xxxxxxx}. Back-end parsing parameter error
you'd better see what's in the parameter params when using getRequest. I think it's the problem here

Menu