From f1550a1f24ff7ad862953f7ca078e6619e7b570b Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期三, 28 六月 2023 14:00:48 +0800 Subject: [PATCH] 附件下载及删除 --- Source/UBCS-WEB/src/api/resource/file.js | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Source/UBCS-WEB/src/api/resource/file.js b/Source/UBCS-WEB/src/api/resource/file.js index b544412..ef26a06 100644 --- a/Source/UBCS-WEB/src/api/resource/file.js +++ b/Source/UBCS-WEB/src/api/resource/file.js @@ -36,14 +36,13 @@ }) } -export const download = (fileOids) => { +export const download = (data) => { return request({ url: '/api/ubcs-resource/fileController/downloadFilesByOids', method: 'post', - headers:{'Content-Type':'application/x-www-form-urlencoded'}, - params: { - fileOids - } + headers:{'Content-Type':'application/x-www-form-urlencoded;charset=UTF-8'}, + data: data + }) } -- Gitblit v1.9.3