当使用 const blob = new Blob([response.data], {type:response.headers['content-type']}); 创建 Blob 对象时,如果发现 Blob 对象的大小为 0,可能是因为 'response.data' 是一个空数据,或者 'response.headers['content-type']' 不正确导致的。建议先检查一下响应的内容和类型是否正确。

如果仍然遇到问题,可以提供更多的代码和上下文信息,以便更好地诊断问题。


原文地址: https://www.cveoy.top/t/topic/n0zE 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录