const url = '接口请求地址'
Axios.post(url, params, {
timeout: 1000 * 30, // 超时设定
headers: { 'Content-Type': 'audio/wav' }, // 定位格式
responseType: 'blob' // 定义返回体格式
}).then(res => {
try {
const audioUrl = window.URL.createObjectURL(res.data)
console.log('audio', audioUrl)
} catch (error) {
console.log(error)
}
})