xiaoyi
2 天以前 f81e5811b9baaaea3645579a6cacad0f75f3d0db
src/main.ts
@@ -3,7 +3,6 @@
import { overridesPreferences, preferencesExtension } from './preferences';
declare const __APP_LOGO__: string;
declare const __APP_FAVICON__: string;
/**
@@ -23,10 +22,12 @@
    overrides: overridesPreferences,
  });
  // 强制覆盖公司 logo 和 favicon,绕过 localStorage 缓存
  if (__APP_LOGO__) {
    preferencesManager.updatePreferences({ logo: { source: __APP_LOGO__ } });
  }
  // 强制覆盖公司 logo 和名称,避免旧缓存恢复历史品牌配置
  preferencesManager.updatePreferences({
    app: { name: '新高电力智造平台' },
    copyright: { companyName: '新高电力智造平台' },
    logo: { source: '/logos/xgdl.svg' },
  });
  if (__APP_FAVICON__) {
    const link = document.querySelector('link[rel="icon"]');
    if (link) {