async downloadTemplate(){ var _this = this; const apiHost = process.env.API_HOST; window.location.href= `${apiHost}/statics/newsalary/admin/file/模板-正常工资薪金所得.xls`; },
直接替换 /statics/newsalary/admin/file/模板-正常工资薪金所得.xls
就可以实现点击下载了