From 89552f87057503b19104dc9e785c9a54017304f3 Mon Sep 17 00:00:00 2001 From: Kerwin Date: Sun, 11 Jun 2023 18:20:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=89=8B=E6=9C=BA=E7=89=88=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=20(Close=20=20#227)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/Setting/Keys.vue | 11 +++++++---- src/components/common/Setting/index.vue | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/components/common/Setting/Keys.vue b/src/components/common/Setting/Keys.vue index eee0a0d7..616965e9 100644 --- a/src/components/common/Setting/Keys.vue +++ b/src/components/common/Setting/Keys.vue @@ -6,10 +6,13 @@ import { KeyConfig, Status, UserRole, apiModelOptions, userRoleOptions } from '. import { fetchGetKeys, fetchUpdateApiKeyStatus, fetchUpsertApiKey } from '@/api' import { t } from '@/locales' import { useAuthStore } from '@/store' +import { useBasicLayout } from '@/hooks/useBasicLayout' const ms = useMessage() const dialog = useDialog() const authStore = useAuthStore() +const { isMobile } = useBasicLayout() + const loading = ref(false) const show = ref(false) const handleSaving = ref(false) @@ -227,20 +230,20 @@ onMounted(async () => { - +
{{ $t('setting.apiModel') }} -
+
-

+

Get Api Key Get Access Token

diff --git a/src/components/common/Setting/index.vue b/src/components/common/Setting/index.vue index 917f508e..c97ec9ce 100644 --- a/src/components/common/Setting/index.vue +++ b/src/components/common/Setting/index.vue @@ -45,7 +45,7 @@ const show = computed({