Questions about axios form submission and jQuery form submission.

recently, I encountered a problem when using axios, that is, the data requested from the server by the same headers, of axios and jQuery is different. I would like to ask if there are any questions in this. Request for
1:axios header

:

2:jQuery ajax header

:

what is the signature in this should be correct, because I can make a successful request by using jQuery"s Ajax after referencing jQuery in vue.


can I code?


Thank you, it has been solved.
first introduce
import qs from 'qs';
Vue.prototype.$qs=qs;

into main.js.

when axios passes a value

let _args = {
    cityid: 1
};

$this.$qs.stringify(_args);


just pass this value into axios

Menu