From fee2f2532144fca6c81b1523aeef54165c5263b2 Mon Sep 17 00:00:00 2001
From: hsy <1029150275@qq.com>
Date: 星期二, 25 八月 2026 16:50:38 +0800
Subject: [PATCH] Merge branch 'refs/heads/dev_pro2.0' into fix/hsy/20260812

---
 src/bootstrap.ts |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/src/bootstrap.ts b/src/bootstrap.ts
index 6a97710..bbfb549 100644
--- a/src/bootstrap.ts
+++ b/src/bootstrap.ts
@@ -18,6 +18,9 @@
 import App from './app.vue';
 import { router } from './router';
 
+import { getCompanyConfig } from '#/api/system/company-config';
+import { applyCompanyConfig } from '#/utils/company-config';
+
 async function bootstrap(namespace: string) {
   // 鍒濆鍖栫粍浠堕�傞厤鍣�
   await initComponentAdapter();
@@ -49,6 +52,17 @@
   // 閰嶇疆 pinia-store
   await initStores(app, { namespace });
 
+  // 鍔犺浇鍏徃鍝佺墝淇℃伅锛堜粠鍚庣锛屽厤鐧诲綍鎺ュ彛锛夛紝鑱斿姩鐧诲綍椤�/鑿滃崟鏍�/缃戦〉鏍囬銆�
+  // 娉細姝ゆ椂 pinia 灏氭湭鍦ㄧ粍浠跺婵�娲伙紝杩欓噷鐢ㄧ函鍑芥暟锛屼笉渚濊禆 store銆�
+  try {
+    const companyConfig = await getCompanyConfig();
+    if (companyConfig) {
+      applyCompanyConfig(companyConfig);
+    }
+  } catch {
+    // 鍚庣涓嶅彲鐢ㄦ垨鏈厤缃紝淇濇寔缂栬瘧鏈熼粯璁�
+  }
+
   // 瀹夎鏉冮檺鎸囦护
   registerAccessDirective(app);
 

--
Gitblit v1.9.3