From f81e5811b9baaaea3645579a6cacad0f75f3d0db Mon Sep 17 00:00:00 2001
From: xiaoyi <908147524@qq.com>
Date: 星期四, 27 八月 2026 11:55:30 +0800
Subject: [PATCH] fix 修改页面
---
src/main.ts | 18 ++++++++++--------
1 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/src/main.ts b/src/main.ts
index dab2d7c..2eb3d72 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -3,6 +3,8 @@
import { overridesPreferences, preferencesExtension } from './preferences';
+declare const __APP_FAVICON__: string;
+
/**
* 搴旂敤鍒濆鍖栧畬鎴愪箣鍚庡啀杩涜椤甸潰鍔犺浇娓叉煋
*/
@@ -20,16 +22,16 @@
overrides: overridesPreferences,
});
- // 閫氳繃鐜鍙橀噺寮哄埗瑕嗙洊鍏徃 logo 鍜� favicon锛岀粫杩囩紦瀛�
- const envLogo = import.meta.env.VITE_APP_LOGO;
- const envFavicon = import.meta.env.VITE_APP_FAVICON;
- if (envLogo) {
- preferencesManager.updatePreferences({ logo: { source: envLogo } });
- }
- if (envFavicon) {
+ // 寮哄埗瑕嗙洊鍏徃 logo 鍜屽悕绉帮紝閬垮厤鏃х紦瀛樻仮澶嶅巻鍙插搧鐗岄厤缃�
+ preferencesManager.updatePreferences({
+ app: { name: '鏂伴珮鐢靛姏鏅洪�犲钩鍙�' },
+ copyright: { companyName: '鏂伴珮鐢靛姏鏅洪�犲钩鍙�' },
+ logo: { source: '/logos/xgdl.svg' },
+ });
+ if (__APP_FAVICON__) {
const link = document.querySelector('link[rel="icon"]');
if (link) {
- link.setAttribute('href', envFavicon);
+ link.setAttribute('href', __APP_FAVICON__);
}
}
--
Gitblit v1.9.3