mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-21 08:18:59 +08:00
Merge branch 'main' of https://github.com/vbenjs/vue-vben-admin into dev
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
/* --popover: 222.82deg 8.43% 12.27%; */
|
/* --popover: 222.82deg 8.43% 12.27%; */
|
||||||
|
|
||||||
/* 弹出层的背景色与主题区域背景色太过接近 */
|
/* 弹出层的背景色与主题区域背景色太过接近 */
|
||||||
--popover: 0 0 14.2%;
|
--popover: 0 0% 14.2%;
|
||||||
--popover-foreground: 210 40% 98%;
|
--popover-foreground: 210 40% 98%;
|
||||||
|
|
||||||
/* Muted backgrounds such as <TabsList />, <Skeleton /> and <Switch /> */
|
/* Muted backgrounds such as <TabsList />, <Skeleton /> and <Switch /> */
|
||||||
|
|||||||
@@ -16,7 +16,13 @@ class FileUploader {
|
|||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
|
|
||||||
Object.entries(data).forEach(([key, value]) => {
|
Object.entries(data).forEach(([key, value]) => {
|
||||||
formData.append(key, value);
|
if (Array.isArray(value)) {
|
||||||
|
value.forEach((item, index) => {
|
||||||
|
formData.append(`${key}[${index}]`, item);
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
formData.append(key, value);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const finalConfig: RequestClientConfig = {
|
const finalConfig: RequestClientConfig = {
|
||||||
|
|||||||
Reference in New Issue
Block a user