我的Excel文件放到public下:  然后方法里调用下载: downloadFile() { let a = document.createElement("a"); a.href = './static/fileTemplate.xlsx'; console.log(a.href,'href---------'); a.setAttribute('download', '文件模板.xlsx'); a.style.display = 'none'; document.body.appendChild(a); a.click(); a.remove(); }, 控制台打印出来href是这样 :  下载的时候就报找不到文件  我觉得正常应该是这样才对: [http://localhost:9102/static/fileTemplate.xlsx](https://link.segmentfault.com/?enc=c4o88v3vmHbW3kcRu%2FB8hA%3D%3D.HDK%2BEvxdig%2FMepFOJ8CATJ6aQOtm2cfbiDwEt8t3K6UCSXp76%2B9LiatoDh7mmlLF) 这样就可以下载到本地文件。 不知道哪里出错了,求指教!