feat:修改面授课下载

This commit is contained in:
lixg
2023-03-04 11:08:59 +08:00
parent 966f6b7c08
commit c109388bb0
6 changed files with 29 additions and 50 deletions

View File

@@ -85,7 +85,7 @@
</el-tab-pane> -->
<el-tab-pane label="材料下载" name="third">
<div
v-if="!data.planDto?.attach"
v-if="!data.offcourseDto?.attach"
style="
font-size: 14px;
font-weight: 400;
@@ -99,7 +99,7 @@
</div>
<div v-else>
<div
v-for="(el, index) in formateArr(data.planDto.attach)"
v-for="(el, index) in formateArr(data.offcourseDto.attach)"
:key="index"
class="enclosure"
:style="{ borderBottom: '1px solid rgba(56, 125, 247, 0.2)' }"
@@ -182,16 +182,11 @@ const handleClick = (tab, event) => {
const download = (url) => {
console.log(
"url2",
window.location.protocol +
import.meta.env.VITE_BOE_API_URL +
import.meta.env.VITE_FILE_PATH +
url
import.meta.env.VITE_BOE_API_URL + import.meta.env.VITE_FILE_PATH + url
);
window.open(
window.location.protocol +
import.meta.env.VITE_BOE_API_URL +
import.meta.env.VITE_FILE_PATH +
url
import.meta.env.VITE_BOE_API_URL + import.meta.env.VITE_FILE_PATH + url,
"_top"
);
};
const downloads = (url) => {