diff --git a/CHANGELOG.md b/CHANGELOG.md index da079c2d3e9eb3e1cb4f73f967749bdb656ca58a..4575a9c33d1eafcb9eae892e5a30ff43bc167f4a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ ## [Unreleased] +### Changed + +- 主题适配多主题插件,并添加到自定义主题列表中 + ## [0.7.41-alpha.32] - 2025-10-16 ### Added diff --git a/src/web-app/guard/auth-guard/auth-guard.ts b/src/web-app/guard/auth-guard/auth-guard.ts index ed727898402ecfa3ad64f6006accd7c18fcee84c..1ec8cfeb5a7520c31b6891e1f31c7867ea133097 100644 --- a/src/web-app/guard/auth-guard/auth-guard.ts +++ b/src/web-app/guard/auth-guard/auth-guard.ts @@ -322,8 +322,11 @@ export class AuthGuard { ); }); if (colorThemes.length > 0) { - const colorTheme = colorThemes[0]; - await ibiz.util.theme.loadTheme(colorTheme); + for (let index = 0; index < colorThemes.length; index++) { + const colorTheme = colorThemes[index]; + // eslint-disable-next-line no-await-in-loop + await ibiz.util.theme.loadTheme(colorTheme); + } } // 加载图标主题 const iconThemes = uiThemes.filter(uiTheme => { @@ -332,8 +335,11 @@ export class AuthGuard { ); }); if (iconThemes.length > 0) { - const iconTheme = iconThemes[0]; - await ibiz.util.theme.loadTheme(iconTheme, 'ICON'); + for (let index = 0; index < iconThemes.length; index++) { + const iconTheme = iconThemes[index]; + // eslint-disable-next-line no-await-in-loop + await ibiz.util.theme.loadTheme(iconTheme, 'ICON'); + } } } }