step1: install
npm install qs
step2: import (main.js)
import qs from 'qs'
Vue.prototype.$qs = qs
step3: post
this.axios.post('***', this.$qs.stringify({
id: ***,
})).then(function (response) {
console.log(error);
}).catch(function (error) {
console.log(error);
});










网友评论