From b88b98425a18603a730720f91178f04d66d891dc Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期二, 27 十月 2026 17:59:50 +0800
Subject: [PATCH] feat(portal): 首页与菜单字号支持在偏好设置中调整

---
 src/packages/@core/preferences/src/preferences.ts |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/packages/@core/preferences/src/preferences.ts b/src/packages/@core/preferences/src/preferences.ts
index 2822060..0be6fb2 100644
--- a/src/packages/@core/preferences/src/preferences.ts
+++ b/src/packages/@core/preferences/src/preferences.ts
@@ -236,11 +236,13 @@
    * @param updates - 鏇存柊鐨勫亸濂借缃�
    */
   private handleUpdates(updates: DeepPartial<Preferences>) {
-    const { theme, app } = updates;
+    const { theme, app, navigation } = updates;
 
     if (
-      theme &&
-      (Object.keys(theme).length > 0 || Reflect.has(theme, 'fontSize'))
+      (theme &&
+        (Object.keys(theme).length > 0 || Reflect.has(theme, 'fontSize'))) ||
+      (navigation && Reflect.has(navigation, 'fontSize')) ||
+      (app && Reflect.has(app, 'homeFontSize'))
     ) {
       updateCSSVariables(this.state);
     }

--
Gitblit v1.9.3