Axios failed to request to add header information?

axios, is used in the project, but the header information needs to be modified, although the global method in the document is used, as follows

axios.defaults.headers.post ["Content-Type"] = "application/x-www-form-urlencoded";

Content-Type application/json.

Mar.09,2021

  1. GET has no request body, so there is no Content-Type.
  2. you set the content-type of post

params is requested in URL, and data is placed in body when it is in POST mode. There is no data, in your code, so there will be no request body

.
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-1e41bc8-438d3.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-1e41bc8-438d3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?