How to use window.open to export and carry parameters
First of all, this method is very useful
window.open(`/api/project-manager/projectReport/exportTimeStatistics?projectId=${this.projectId}&startTime=${this.startTime}&endTime=${this.endTime}`)
Directly write the path, you can open it directly, if you need to bring parameters, you can be like me, remember to use the interpolation expression of es6
, the small quotation marks above the tab are used to carry parameters
?projectId=${this.projectId}&startTime=${this.startTime}&endTime=${this.endTime}