From 1881085df209c018d49aeda40f7818f65c959ab7 Mon Sep 17 00:00:00 2001 From: TiaStars Date: Mon, 12 Aug 2024 16:33:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E8=BD=BDstatic=E9=87=8C=E7=9A=84?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=9C=B0=E5=9D=80=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/views/enterpriselibrary/index.vue | 7 ++++++- src/views/onlineDeclaration/enterpriseDirectory/index.vue | 7 ++++++- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 3f40792..8aaa9cf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ruoyi", - "version": "1.0.202408121511", + "version": "1.0.202408121626", "description": "金鸡湖现代服务业品牌管理系统", "author": "若依", "license": "MIT", diff --git a/src/views/enterpriselibrary/index.vue b/src/views/enterpriselibrary/index.vue index d9ba7d3..9d556b7 100644 --- a/src/views/enterpriselibrary/index.vue +++ b/src/views/enterpriselibrary/index.vue @@ -337,7 +337,12 @@ 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属性值加上地址,注意,这里是绝对路径,不用加 点. a.download ="企业库模板.xlsx"; //设置下载文件文件名,这里加上.xlsx指定文件类型,pdf文件就指定.fpd即可 diff --git a/src/views/onlineDeclaration/enterpriseDirectory/index.vue b/src/views/onlineDeclaration/enterpriseDirectory/index.vue index 7907ce0..b18b2bf 100644 --- a/src/views/onlineDeclaration/enterpriseDirectory/index.vue +++ b/src/views/onlineDeclaration/enterpriseDirectory/index.vue @@ -846,7 +846,12 @@ 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属性值加上地址,注意,这里是绝对路径,不用加 点. a.download ="企业名录模板.xlsx"; //设置下载文件文件名,这里加上.xlsx指定文件类型,pdf文件就指定.fpd即可