feat:修改下载

This commit is contained in:
lixg
2023-03-03 16:09:55 +08:00
parent b14f26053e
commit 3ac0659c55
5 changed files with 82 additions and 10 deletions

View File

@@ -180,13 +180,22 @@ const handleClick = (tab, event) => {
console.log("附件", tab, event);
};
const download = (url) => {
let urlNew = url.slice(1);
console.log(
"下载url",
import.meta.env.VITE_FILE_PATH,
process.env.VITE_FILE_PATH,
url
"url2",
window.location.protocol +
import.meta.env.VITE_BOE_API_URL +
import.meta.env.VITE_FILE_PATH +
urlNew
);
window.open(import.meta.env.VITE_FILE_PATH + url);
if (urlNew) {
window.open(
window.location.protocol +
import.meta.env.VITE_BOE_API_URL +
import.meta.env.VITE_FILE_PATH +
urlNew
);
}
};
const downloads = (url) => {
ElMessage.warning("未在有效时间范围内,请耐心等待!");