if (this.typeData === 'post') {
// post 请求,后台接收 form-data 请求类型的参数
let params = this.getParams()
let sign = this.signHmacSha(params)
params[this.signature] = sign
let url = this.url[this.radioData]
let header = Object.assign(this.headers, {'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8'})
this.axios.post(url, qs.stringify({
login_type: 'email',
email: 'xxxxx',
password: 'xxxxx'
}, {indices: false}), {
headers: header
}).then((resp) => {
this.outParams = JSON.stringify(resp)
}).catch((response) => {
this.outParams = JSON.stringify(response)
console.log(response)
})
}