Request Payload 传参
export function GetList(data) {
return request({
url: '/xxx',
method: 'post',
headers: {
'Content-Type': 'application/json'
},
data: data
})
}
formdata传参
export function GetList(data) {
return request({
url: '/xxx',
method: 'post',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
data: qs.stringify(data)
})
}