From 61024a661e6702f3942dd650bb8865246eb000b9 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Tue, 30 Jul 2024 11:02:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dxpack=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/layout/components/top-bar/index.vue | 2 +- ui/src/views/chat/index.vue | 2 +- ui/src/views/login/index.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/src/layout/components/top-bar/index.vue b/ui/src/layout/components/top-bar/index.vue index 59c5964de..5d5060e81 100644 --- a/ui/src/layout/components/top-bar/index.vue +++ b/ui/src/layout/components/top-bar/index.vue @@ -11,7 +11,7 @@
{ if (mode && mode === 'embed') { modeName = 'embed' } else { - modeName = show_history.value || !user.showXpack() ? 'pc' : 'base' + modeName = show_history.value || !user.isEnterprise() ? 'pc' : 'base' } const name = `/src/views/chat/${modeName}/index.vue` diff --git a/ui/src/views/login/index.vue b/ui/src/views/login/index.vue index 694886d5e..ca2e6de83 100644 --- a/ui/src/views/login/index.vue +++ b/ui/src/views/login/index.vue @@ -135,7 +135,7 @@ const login = () => { onMounted(() => { user.asyncGetProfile().then((res) => { - if (user.showXpack()) { + if (user.isEnterprise()) { loading.value = true user .getAuthType()