1download(filename) {
2 fetch(url , { headers })
3 .then(response => response.blob())
4 .then(blob => URL.createObjectURL(blob))
5 .then(uril => {
6 var link = document.createElement("a");
7 link.href = uril;
8 link.download = filename + ".csv";
9 document.body.appendChild(link);
10 link.click();
11 document.body.removeChild(link);
12 });
13}
14