From a2eeba84bed5de1c19b74279ee7f096b5eff5528 Mon Sep 17 00:00:00 2001
From: yuxc <653031404@qq.com>
Date: 星期三, 13 九月 2023 11:50:00 +0800
Subject: [PATCH] 1、加载分类的时候提示没有编码规则错误,同时处理由此导致的RMDataTransmitObject未初始化保存问题,在创建bean时就进行了初始化。
---
Source/UBCS-WEB/src/api/resource/file.js | 10 +++++-----
1 files changed, 5 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..0af8963 100644
--- a/Source/UBCS-WEB/src/api/resource/file.js
+++ b/Source/UBCS-WEB/src/api/resource/file.js
@@ -36,14 +36,14 @@
})
}
-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'},
+ responseType: 'blob',
+ data: data
+
})
}
--
Gitblit v1.9.3