``download(row.reportId,this.queryParams.catalogId).then(res=>{ const blob = new Blob([res],{type:'text/csv;charset=GBK'}); var filename = 'text.csv'; // 创建临时链接并设置下载属性 var url = window.URL.createObjectURL(blob); var a = document.createElement('a'); a.href = url; a.download = filename; document.body.appendChild(a); a.click(); window.URL.revokeObjectURL(url); // 释放URL对象 document.body.removeChild(a); })