可以使用qs进行对参数的序列化
const data = {
'accName': accName,
'algorithmType': algorithmType
}
axios({
method: 'post',
url: '/hash/api/aggre/account/detail',
data: qs.stringify(data),
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
'Authorization': token
}
}).then(res => {
});

网友评论