// // 本地下载方法,文件放在public目录里
// 使用a标签下载
const a = document.createElement('a')
herf为本地下载路径,文件在public目录下
a.href = './template.xlsx'
a.download = 'template.xlsx'
a.click()
线上下载方法
window.location.href = 'http://zctest.wzyunzhi.cn:7070/expertFile/model/template.xlsx'