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

@@ -418,7 +418,23 @@ const handleClick = (tab, event) => {
console.log("附件", tab, event);
};
const download = (url) => {
window.open(url);
console.log("url", url);
let urlNew = url.slice(1);
console.log(
"url2",
window.location.protocol +
import.meta.env.VITE_BOE_API_URL +
import.meta.env.VITE_FILE_PATH +
urlNew
);
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("未到开始时间,请耐心等待!");