From 78b58c75477812fc326492082d1141636bc25c9a Mon Sep 17 00:00:00 2001 From: Frontend Developer Date: Tue, 10 Mar 2026 10:02:44 +0000 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF:=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=89=8D=E7=AB=AF=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/config.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 frontend/src/config.js diff --git a/frontend/src/config.js b/frontend/src/config.js new file mode 100644 index 0000000..ee6e4f8 --- /dev/null +++ b/frontend/src/config.js @@ -0,0 +1,13 @@ +// 前端配置 +const config = { + apiBase: process.env.API_URL || 'http://localhost:3000/api', + uploadMaxSize: 100 * 1024 * 1024, // 100MB + allowedFileTypes: ['jpg', 'jpeg', 'png', 'gif', 'pdf', 'doc', 'docx', 'xls', 'xlsx', 'txt', 'md', 'zip', 'rar'], + theme: { + primaryColor: '#1890ff', + fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto', + }, + syncInterval: 5 * 60 * 1000, // 5分钟 +}; + +window.CloudDiskConfig = config;