Creating a label using a get request to download the file

Creating a label using a get request to download the file

 let url = `${BaseUrl.path}/aa/bb/cc?no=${this.sqcode}&pae=${this.wlName}&ase=${this.setDate(this.data[0])}&eae=${this.setDate(this.data[1])}&esy=${this.empId}&aay=${this.sqName}`;
      const a = document.createElement('a')
      a.style.display = 'none';
      a.setAttribute('target', '_blank');
      a.href = url;
      a.click();

Guess you like

Origin www.cnblogs.com/sugartang/p/12022269.html