From 25994bd3bbefbe1b5e5035d6540b4e0e56320a6c Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Wed, 28 Jan 2026 20:13:47 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E4=B8=BB=E9=A2=98):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E4=B8=BB=E9=A2=98=E6=A8=A1=E5=BC=8F=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在主题配置中添加默认的 mode 字段,明确设置初始主题为亮色模式,避免主题状态未定义时的显示问题 --- apps/web-antd/src/preferences.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/web-antd/src/preferences.ts b/apps/web-antd/src/preferences.ts index d2c2fac3..dce909df 100644 --- a/apps/web-antd/src/preferences.ts +++ b/apps/web-antd/src/preferences.ts @@ -45,6 +45,8 @@ export const overridesPreferences = defineOverridesPreferences({ // styleType: 'card', }, theme: { + /** 默认主题模式 */ + mode: 'light', /** * 浅色sidebar */