application/x-www-form-urlencode
2021-08-07 本文已影响0人
抽疯的稻草绳

const res = await serviceApi.loginApi(this.params, {
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
})
console.log(res)

const params = new URLSearchParams();
params.append('mobile', this.params.mobile);
params.append('password', this.params.password)
const res = await serviceApi.loginApi(params, {
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
})
console.log(res)