| | |
| | | import { initPreferences, preferencesManager } from './packages/preferences/src'; |
| | | import { unmountGlobalLoading } from './packages/utils/src'; |
| | | |
| | | import { overridesPreferences, preferencesExtension } from './preferences'; |
| | | import { overridesPreferences, portalAppearancePreferences, preferencesExtension } from './preferences'; |
| | | |
| | | declare const __APP_LOGO__: string; |
| | | declare const __APP_FAVICON__: string; |
| | |
| | | overrides: overridesPreferences, |
| | | }); |
| | | |
| | | // 一次性迁移外观,避免已有偏好缓存让新版菜单布局不生效。 |
| | | const appearanceKey = `${namespace}-portal-appearance-v2`; |
| | | if (!localStorage.getItem(appearanceKey)) { |
| | | preferencesManager.updatePreferences(portalAppearancePreferences); |
| | | localStorage.setItem(appearanceKey, '1'); |
| | | } |
| | | |
| | | // 强制覆盖公司 logo 和 favicon,绕过 localStorage 缓存 |
| | | if (__APP_LOGO__) { |
| | | preferencesManager.updatePreferences({ logo: { source: __APP_LOGO__ } }); |