| | |
| | | import { initPreferences } from './packages/preferences/src'; |
| | | import { initPreferences, preferencesManager } from './packages/preferences/src'; |
| | | import { unmountGlobalLoading } from './packages/utils/src'; |
| | | |
| | | import { overridesPreferences, preferencesExtension } from './preferences'; |
| | | |
| | | declare const __APP_LOGO__: string; |
| | | declare const __APP_FAVICON__: string; |
| | | |
| | | /** |
| | | * 应用初始化完成之后再进行页面加载渲染 |
| | |
| | | overrides: overridesPreferences, |
| | | }); |
| | | |
| | | // 强制覆盖公司 logo 和 favicon,绕过 localStorage 缓存 |
| | | if (__APP_LOGO__) { |
| | | preferencesManager.updatePreferences({ logo: { source: __APP_LOGO__ } }); |
| | | } |
| | | if (__APP_FAVICON__) { |
| | | const link = document.querySelector('link[rel="icon"]'); |
| | | if (link) { |
| | | link.setAttribute('href', __APP_FAVICON__); |
| | | } |
| | | } |
| | | |
| | | // 启动应用并挂载 |
| | | // vue应用主要逻辑及视图 |
| | | const { bootstrap } = await import('./bootstrap'); |