From 8f7baf994c670aaa878dfc646618bc8246a7e343 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Thu, 18 Jul 2024 18:20:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/stores/modules/user.ts | 1 + ui/src/views/login/index.vue | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) 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