fix:面授课附件下载问题修改

This commit is contained in:
wyx
2023-03-08 11:53:34 +08:00
parent e2eefb2563
commit f71315807f

View File

@@ -307,7 +307,7 @@
</template>
<script setup>
import { computed, reactive, toRefs, watch, onUnmounted } from "vue";
import { computed, reactive, toRefs, watch, onUnmounted, ref } from "vue";
import FileTypeImg from "@/components/FileTypeImg.vue";
import { request, useRequest } from "@/api/request";
import {
@@ -343,8 +343,10 @@ const { activeName, enclosure, isAllowSign } = toRefs(state);
const handleClick = (tab, event) => {
console.log("附件", tab, event);
};
const fielPath = ref(import.meta.env.VITE_FILE_PATH);
const download = (url) => {
window.open(url);
console.log(fielPath.value+url)
window.open(fielPath.value+url);
};
const downloads = (url) => {
ElMessage.warning("未到开始时间,请耐心等待!");