feat:修改下载url

This commit is contained in:
lixg
2023-03-03 20:16:56 +08:00
parent 488b984273
commit 966f6b7c08
5 changed files with 36 additions and 54 deletions

View File

@@ -180,22 +180,19 @@ const handleClick = (tab, event) => {
console.log("附件", tab, event);
};
const download = (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
url
);
window.open(
window.location.protocol +
import.meta.env.VITE_BOE_API_URL +
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("未在有效时间范围内,请耐心等待!");