This commit is contained in:
dap 2025-03-27 13:25:23 +08:00
commit f5fada20e6
2 changed files with 8 additions and 2 deletions

View File

@ -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 /> */

View File

@ -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 = {