diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f48bddd4c46c4d8517ee1c4500235cc081aab4c..624cac1b85c34feb4a45b304a49a86862149ea92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ ## [Unreleased] +### Added + +- 新增应用主题配置 + ## [0.0.54] - 2025-02-28 ### Fixed diff --git a/src/mob-app/guard/auth-guard/auth-guard.ts b/src/mob-app/guard/auth-guard/auth-guard.ts index 096aa64ff42f62fb0952f60779a99ef48fe18eef..9b8b06ba95690c018349f57823d984ed45a5fe73 100644 --- a/src/mob-app/guard/auth-guard/auth-guard.ts +++ b/src/mob-app/guard/auth-guard/auth-guard.ts @@ -158,6 +158,7 @@ async function initModel( const module = await import('@ibiz-template/mob-theme'); const theme = module.default || module; AppHooks.useComponent.callSync(null, theme); + if (ibiz.config.theme) ibiz.util.theme.setTheme(ibiz.config.theme); if (appModel.appUIThemes) { await loadTheme(); }