The <a > tag downloads the file but causes the current page to become blank?!

I export the Excel document with the tag, and the front end is only responsible for passing parameters to download from the back end, as shown below.
although the download is successful, sometimes downloads will cause the current page to become a blank page, and sometimes there is no problem (especially if you return to the original page after the first abnormal download, there will be no problem)

I haven"t solved it for a long time, do you gods know why?

clipboard.png

</i> 
</a>
Sep.16,2021

if there is an error, you can see multiple download link requests in network next time:

clipboard.png

response
clipboard.png

clipboard.png


need to add download attribute

if you don't add it, it will be treated as an ordinary link that jumps directly on the current page

<a download href="//120.92.42.115:81/api//statistics/newly_install?&appId=78&channel=&version=&isExport=true&startDate=2018-10-17&endDate=2018-10-23&type=day" class="download">
    <i class="el-icon-upload2"></i> 
</a>

especially if you go back to the original page and download it after the first abnormal time, there will basically be no more problems

it goes blank because you jump directly, and the second time is normal because the browser already knows that accessing this address is a download.
add download attribute

<a href=... download>
Menu