xiaoyi
2 天以前 1eba515718ec0420b8e6f3353c12179539d4c8b1
src/main.ts
@@ -3,9 +3,7 @@
import { overridesPreferences, preferencesExtension } from './preferences';
declare const __APP_LOGO__: string;
declare const __APP_FAVICON__: string;
declare const __APP_NAME__: string;
/**
 * 应用初始化完成之后再进行页面加载渲染
@@ -24,17 +22,12 @@
    overrides: overridesPreferences,
  });
  // 强制覆盖公司 logo 和 favicon,绕过 localStorage 缓存
  if (__APP_LOGO__) {
    preferencesManager.updatePreferences({ logo: { source: __APP_LOGO__ } });
  }
  // 强制覆盖公司名称,绕过 localStorage 缓存
  if (__APP_NAME__) {
  // 强制覆盖公司 logo 和名称,避免旧缓存恢复历史品牌配置
    preferencesManager.updatePreferences({
      app: { name: __APP_NAME__ },
      copyright: { companyName: __APP_NAME__ },
    app: { name: '新高电力智造平台' },
    copyright: { companyName: '新高电力智造平台' },
    logo: { source: '/logos/xgdl.svg' },
    });
  }
  if (__APP_FAVICON__) {
    const link = document.querySelector('link[rel="icon"]');
    if (link) {