diff --git a/ui/src/stores/modules/user.ts b/ui/src/stores/modules/user.ts index 98414d70b..b28cc0bb5 100644 --- a/ui/src/stores/modules/user.ts +++ b/ui/src/stores/modules/user.ts @@ -82,6 +82,7 @@ const useUserStore = defineStore({ this.version = ok.data?.version || '-' this.isXPack = ok.data?.IS_XPACK this.XPACK_LICENSE_IS_VALID = ok.data?.XPACK_LICENSE_IS_VALID + if (this.isEnterprise()) { await this.theme() } diff --git a/ui/src/views/login/index.vue b/ui/src/views/login/index.vue index c802933d2..533d7e4bd 100644 --- a/ui/src/views/login/index.vue +++ b/ui/src/views/login/index.vue @@ -134,7 +134,9 @@ const login = () => { } onMounted(() => { - user.theme() + if (user.isEnterprise()) { + user.theme() + } user.asyncGetProfile().then((res) => { if (user.isXPack) { loading.value = true