前端打印 1.后端返回数据格式 返回html 文件流 Content-Type: text/html 2.接口请求 responseType: 'blob' 请求头必须加 3.文件流接收后处理 loading.value = true 获取数据的接口 printAgentOrderDetails(details.value.id) .then((res) =>