From c64bb94c7e1758f47e8c946e4656a71bb5fd53e8 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 12 八月 2026 17:10:57 +0800
Subject: [PATCH] feat(system): 新增部门管理和岗位管理的 Excel 导入功能

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

diff --git a/src/main.ts b/src/main.ts
index d6fa68c..e208cd2 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -1,7 +1,10 @@
-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;
 
 /**
  * 搴旂敤鍒濆鍖栧畬鎴愪箣鍚庡啀杩涜椤甸潰鍔犺浇娓叉煋
@@ -20,6 +23,17 @@
     overrides: overridesPreferences,
   });
 
+  // 寮哄埗瑕嗙洊鍏徃 logo 鍜� favicon锛岀粫杩� localStorage 缂撳瓨
+  if (__APP_LOGO__) {
+    preferencesManager.updatePreferences({ logo: { source: __APP_LOGO__ } });
+  }
+  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