From dab1e0a3e0b1279ee7be77d359ffc93a831455d4 Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期一, 24 八月 2026 17:57:27 +0800
Subject: [PATCH] feat(preferences): 公司品牌信息化编辑与全局联动(登录页/菜单栏/网页标题),偏好设置 tab

---
 src/api/system/storage/index.ts |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/src/api/system/storage/index.ts b/src/api/system/storage/index.ts
index 95ad345..d1c3557 100644
--- a/src/api/system/storage/index.ts
+++ b/src/api/system/storage/index.ts
@@ -41,6 +41,18 @@
   return requestClient.post<SystemStorageApi.StorageBlob[]>(
     '/system/storage-blob/upload',
     formData,
+    { headers: { 'Content-Type': 'multipart/form-data' } },
+  );
+}
+
+/** 鍏叡鏂囦欢涓婁紶锛堟案涔呮湁鏁堬紝杩斿洖姘镐箙鍏紑 previewURL锛岀敤浜庣櫥褰曢〉绛夊厤鐧诲綍灞曠ず鐨勫満鏅級 */
+export function publicUploadFile(files: globalThis.File[]) {
+  const formData = new FormData();
+  files.forEach((file) => formData.append('files', file));
+  return requestClient.post<SystemStorageApi.StorageBlob[]>(
+    '/system/storage-blob/public-upload',
+    formData,
+    { headers: { 'Content-Type': 'multipart/form-data' } },
   );
 }
 

--
Gitblit v1.9.3