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

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e3a66e-445ca.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e3a66e-445ca.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?