Axios is submitted as x-www-form-urlencoded, and the backend does not receive data.

this is the requirement of the backend:

clipboard.png

:


clipboard.png

clipboard.png

what"s going on?

Dec.07,2021

this picture shows that there is something wrong with the data you sent. The whole obj is json and regarded as name
clipboard.png
FormData


clipboard.png

.

install qs , and then

qs.stringify(obj)

axios it is not valid for you to set headers , and encode the data
refer to this issue
Content-Type application/x-www-form-urlencoded

.
Menu