From 3e71d77e7809a709ca2015306ab7ef7935dc82d7 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期一, 24 八月 2026 17:03:50 +0800
Subject: [PATCH] style(auth): 优化认证页面样式和登录组件
---
src/main.ts | 28 +++++++++++++++++++++++++++-
1 files changed, 27 insertions(+), 1 deletions(-)
diff --git a/src/main.ts b/src/main.ts
index d6fa68c..6a42557 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -1,7 +1,11 @@
-import { initPreferences } from './packages/preferences/src';
+import { initPreferences, preferencesManager } from './packages/preferences/src';
import { unmountGlobalLoading } from './packages/utils/src';
import { overridesPreferences, preferencesExtension } from './preferences';
+
+declare const __APP_LOGO__: string;
+declare const __APP_FAVICON__: string;
+declare const __APP_NAME__: string;
/**
* 搴旂敤鍒濆鍖栧畬鎴愪箣鍚庡啀杩涜椤甸潰鍔犺浇娓叉煋
@@ -20,6 +24,28 @@
overrides: overridesPreferences,
});
+ // 寮哄埗瑕嗙洊鍏徃 logo 鍜� favicon锛岀粫杩� localStorage 缂撳瓨
+ if (__APP_LOGO__) {
+ preferencesManager.updatePreferences({ logo: { source: __APP_LOGO__ } });
+ }
+ // 寮哄埗瑕嗙洊鍏徃鍚嶇О锛岀粫杩� localStorage 缂撳瓨
+ if (__APP_NAME__) {
+ preferencesManager.updatePreferences({
+ app: { name: __APP_NAME__ },
+ copyright: { companyName: __APP_NAME__ },
+ });
+ }
+ // 寮哄埗瑕嗙洊榛樿棣栭〉涓�"鍩虹鏁版嵁涓庝竴琚嬩竴鐮�"锛岀粫杩� localStorage 缂撳瓨
+ preferencesManager.updatePreferences({
+ app: { defaultHomePath: '/bagcode-home' },
+ });
+ if (__APP_FAVICON__) {
+ const link = document.querySelector('link[rel="icon"]');
+ if (link) {
+ link.setAttribute('href', __APP_FAVICON__);
+ }
+ }
+
// 鍚姩搴旂敤骞舵寕杞�
// vue搴旂敤涓昏閫昏緫鍙婅鍥�
const { bootstrap } = await import('./bootstrap');
--
Gitblit v1.9.3