From 91bfcf61f44f353dfebc54a57b5b774721de3e9a Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期一, 19 十月 2026 09:39:22 +0800
Subject: [PATCH] feat(auth): 更新门户认证页面布局和样式

---
 src/main.ts |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/src/main.ts b/src/main.ts
index b692f75..b078d0b 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -1,7 +1,7 @@
 import { initPreferences, preferencesManager } from './packages/preferences/src';
 import { unmountGlobalLoading } from './packages/utils/src';
 
-import { overridesPreferences, preferencesExtension } from './preferences';
+import { overridesPreferences, portalAppearancePreferences, preferencesExtension } from './preferences';
 
 declare const __APP_LOGO__: string;
 declare const __APP_FAVICON__: string;
@@ -24,6 +24,13 @@
     overrides: overridesPreferences,
   });
 
+  // 涓�娆℃�ц縼绉诲瑙傦紝閬垮厤宸叉湁鍋忓ソ缂撳瓨璁╂柊鐗堣彍鍗曞竷灞�涓嶇敓鏁堛��
+  const appearanceKey = `${namespace}-portal-appearance-v2`;
+  if (!localStorage.getItem(appearanceKey)) {
+    preferencesManager.updatePreferences(portalAppearancePreferences);
+    localStorage.setItem(appearanceKey, '1');
+  }
+
   // 寮哄埗瑕嗙洊鍏徃 logo 鍜� favicon锛岀粫杩� localStorage 缂撳瓨
   if (__APP_LOGO__) {
     preferencesManager.updatePreferences({ logo: { source: __APP_LOGO__ } });

--
Gitblit v1.9.3