feat:修改关卡

This commit is contained in:
lixg
2023-02-27 17:52:56 +08:00
parent 6d458db4c6
commit 3c6482534c
7 changed files with 72 additions and 23 deletions

View File

@@ -123,6 +123,21 @@
}}
</div>
</div>
<div class="download">
<img
style="width: 16px; height: 15px"
src="../../assets/image/download.png"
/>
<div
style="margin-left: 5px; color: rgba(36, 120, 255, 1)"
@click="download(el)"
>
下载
</div>
<!-- <div style="margin-left: 5px;color:#999;" @click="download(el)">
下载
</div> -->
</div>
</div>
</div>
</el-tab-pane>
@@ -168,7 +183,16 @@ const handleClick = (tab, event) => {
console.log("附件", tab, event);
};
const download = (url) => {
window.open(url);
console.log(
"下载url",
import.meta.env.VITE_BOE_TEST_DETAIL_URL,
import.meta.env.VITE_BASE_FILE_PATH,
process.env.VITE_BASE_FILE_PATH,
url
);
window.open(
window.location.protocol + import.meta.env.VITE_BASE_FILE_PATH + url
);
};
const downloads = (url) => {
ElMessage.warning("未在有效时间范围内,请耐心等待!");