mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-09 19:06:47 +08:00
feat:修改面授课下载
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user