下载static里的文件地址更改

master
吕天方 5 months ago
parent c49d36d548
commit 1881085df2

@ -1,6 +1,6 @@
{ {
"name": "ruoyi", "name": "ruoyi",
"version": "1.0.202408121511", "version": "1.0.202408121626",
"description": "金鸡湖现代服务业品牌管理系统", "description": "金鸡湖现代服务业品牌管理系统",
"author": "若依", "author": "若依",
"license": "MIT", "license": "MIT",

@ -337,7 +337,12 @@ export default {
// //
frontDownload() { frontDownload() {
var a = document.createElement("a"); //<a></a> var a = document.createElement("a"); //<a></a>
a.href = "/demo/JinJiHu/static/企业库数据模板.xlsx"; //
// a.href = "/demo/JinJiHu/static/.xlsx";
//
a.href = "/demo/JinJiHuTest/static/企业库数据模板.xlsx";
//
// a.href = "./static/.xlsx";
//ahref . //ahref .
a.download ="企业库模板.xlsx"; a.download ="企业库模板.xlsx";
//.xlsxpdf.fpd //.xlsxpdf.fpd

@ -846,7 +846,12 @@ export default {
// //
frontDownload() { frontDownload() {
var a = document.createElement("a"); //<a></a> var a = document.createElement("a"); //<a></a>
a.href = "/demo/JinJiHu/static/企业名录模板.xlsx"; //
// a.href = "/demo/JinJiHu/static/.xlsx";
//
a.href = "/demo/JinJiHuTest/static/企业名录模板.xlsx";
//
// a.href = "./static/.xlsx";
//ahref . //ahref .
a.download ="企业名录模板.xlsx"; a.download ="企业名录模板.xlsx";
//.xlsxpdf.fpd //.xlsxpdf.fpd

Loading…
Cancel
Save