From 7d7798188c756427b4edbfe28ee641320d2e66e7 Mon Sep 17 00:00:00 2001 From: TiaStars Date: Fri, 13 Sep 2024 08:54:15 +0800 Subject: [PATCH] +1 --- src/views/onlineDeclaration/enterpriseDirectory/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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即可