diff --git a/src/views/onlineDeclaration/enterpriseDirectory/index.vue b/src/views/onlineDeclaration/enterpriseDirectory/index.vue index 5a283bf..7bb227b 100644 --- a/src/views/onlineDeclaration/enterpriseDirectory/index.vue +++ b/src/views/onlineDeclaration/enterpriseDirectory/index.vue @@ -847,11 +847,11 @@ export default { frontDownload() { var a = document.createElement("a"); //创建一个标签 // 测试环境下载地址 - // a.href = "/demo/JinJiHu/static/企业名录模板.xlsx"; + a.href = "/demo/JinJiHu/static/企业名录模板.xlsx"; // 脱敏三方测试用下载地址 // a.href = "/demo/JinJiHuTest/static/企业名录模板.xlsx"; // 正式环境下载地址 - a.href = "./static/企业名录模板.xlsx"; + // a.href = "./static/企业名录模板.xlsx"; //给a标签的href属性值加上地址,注意,这里是绝对路径,不用加 点. a.download ="企业名录模板.xlsx"; //设置下载文件文件名,这里加上.xlsx指定文件类型,pdf文件就指定.fpd即可