Project requirements, download reports of excel file type, post request, and the backend returns to me in the form of file stream. I first judge the type of response header, such as excel file, and dynamically create an a tag to get the file. The code is as follows!
the result is that the file is downloaded, but it can"t be opened. I don"t know why