application/x-www-form-urlencoded 请求
import request from '@/utils/request'
// 查询心率
export function listHeartRate(data) {
return request({
url: 'api/heartHealth/queryHeartRateList',
method: 'post',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
data: data,
transformRequest: [
function (data) {
let ret = ''
for (let it in data) {
ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
}
ret = ret.substring(0, ret.lastIndexOf('&'));
return ret
}
],
})
}