下载文件

base
JayChou 6 months ago
parent 53bf90dfb4
commit 6997bf2b39
  1. 8
      src/views/userInfo/components/reacList.vue

@ -24,7 +24,7 @@
link link
type="primary" type="primary"
size="small" size="small"
@click="download(row.fileUrl, row.fileName)" @click="download(row.fileUrl)"
v-if="row.uploadWorkFlag != 'no'" v-if="row.uploadWorkFlag != 'no'"
> >
下载文件 下载文件
@ -115,7 +115,7 @@
<script setup lang="ts"> <script setup lang="ts">
import { ref } from 'vue' import { ref } from 'vue'
import { getStuRaceList, uploadFileZp, sava } from '@/api/race' import { getStuRaceList, uploadFileZp, sava, getfile } from '@/api/race'
import { ElMessage } from 'element-plus' import { ElMessage } from 'element-plus'
const list = ref<any>([]) const list = ref<any>([])
const page = ref<any>({ const page = ref<any>({
@ -174,8 +174,8 @@ const headerChange = (pageNumber: any) => {
getList() getList()
} }
// //
const download = (url: any, fileName: any) => { const download = async (url:any) => {
window.open(url) window.open(import.meta.env.VITE_APP_BASE_API + '/sys/common/zuopin/' + url)
} }
const saveEvent = async (id: any) => { const saveEvent = async (id: any) => {

Loading…
Cancel
Save