前端数据请求设置responseType: 'blob',getResponse: true时拿到JSON数据 huangqinye888 2024-08-09 0 阅读1分钟 //将 Blob 转换为文本 const text = await res.data.text(); const jsonResponse = JSON.parse(text);