How Axios sends parameters
Some simple problems encountered during development
The parameters of the request when using get
axios.get(
'http://localhost:8040/xxx/qqq',
{ params:params}
)
Use post method to request parameters at that time
axios.post(
'http://localhost:8040/xxx/qqq',
params
)
get的方式是以查询参数的方式进行请求的,post方式是以json数据的方式进行请求的。