- 先获取后端返回的流数据
- 获取全局唯一文件管理器
- 写入文件
- 打开文档
效果图:
代码:
try{
uni.showLoading({title:'正在打开'})
uni.request({
url: type === 'cadet' ? this.$api.pdfCadet : this.$api.pdfCoach, //接口
method: 'GET',
data: params,
responseType: 'arraybuffer',
hea