backend provides a RESTful for a get request. You can download it by typing it directly in the browser, but not if you call it in the code. The return value is the file information in Excel. There is no action to download the file. In the
front end, I click the button directly and then call the api.
currently use the a tag to open the backend url, but to request the url, you need to add token information to the header and what to do.
<a :href="downLoadSrc" download class="downLoad-btn">
//url
self.downLoadSrc="http://172.21.81.160:8085/storemonitor/api/v1.0/inspect/template";