然后在 methods 中创建导出方法,调用即可 exportChargeRecord(ids.join(",")).then(res=>{letblob=newBlob([res.data],{type:'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8\''})// 这里的类型,设置的是你下载文件的具体类型. 不同的文件类型可能不一样. 需要自己指定.let...