From 385f565007bf778c37a2f8c66ee72231a85cd2af Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期二, 10 十月 2023 19:58:22 +0800
Subject: [PATCH] 前端打包文件上传
---
Source/UBCS-WEB/src/api/resource/file.js | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/Source/UBCS-WEB/src/api/resource/file.js b/Source/UBCS-WEB/src/api/resource/file.js
index 46c711a..0af8963 100644
--- a/Source/UBCS-WEB/src/api/resource/file.js
+++ b/Source/UBCS-WEB/src/api/resource/file.js
@@ -12,7 +12,7 @@
})
}
-export const remove = (fileOids,oids) => {
+export const remove = (oids) => {
return request({
url: '/api/ubcs-resource/fileController/deleteFile',
method: 'delete',
@@ -36,13 +36,14 @@
})
}
-export const download = (fileOids) => {
+export const download = (data) => {
return request({
url: '/api/ubcs-resource/fileController/downloadFilesByOids',
- method: 'get',
- params: {
- fileOids
- }
+ method: 'post',
+ headers:{'Content-Type':'application/x-www-form-urlencoded;charset=UTF-8'},
+ responseType: 'blob',
+ data: data
+
})
}
--
Gitblit v1.9.3