From 809355178cdd17d4bf66a4eb443c56b563b68dd9 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期五, 14 八月 2026 13:39:06 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev_pro2.0' into dev_pro2.0
---
src/main.ts | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/src/main.ts b/src/main.ts
index dab2d7c..e208cd2 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -3,6 +3,9 @@
import { overridesPreferences, preferencesExtension } from './preferences';
+declare const __APP_LOGO__: string;
+declare const __APP_FAVICON__: string;
+
/**
* 搴旂敤鍒濆鍖栧畬鎴愪箣鍚庡啀杩涜椤甸潰鍔犺浇娓叉煋
*/
@@ -20,16 +23,14 @@
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 } });
+ // 寮哄埗瑕嗙洊鍏徃 logo 鍜� favicon锛岀粫杩� localStorage 缂撳瓨
+ if (__APP_LOGO__) {
+ preferencesManager.updatePreferences({ logo: { source: __APP_LOGO__ } });
}
- if (envFavicon) {
+ 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