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