From b64d507c6ed290eeceddde17cda1343e036752cc Mon Sep 17 00:00:00 2001 From: fawney19 Date: Fri, 12 Dec 2025 20:21:56 +0800 Subject: [PATCH] =?UTF-8?q?refactor(frontend):=20=E4=BC=98=E5=8C=96=20API?= =?UTF-8?q?=20Keys=20=E5=8A=9F=E8=83=BD=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 改进 StandaloneKeyFormDialog 组件 --- .../features/api-keys/components/StandaloneKeyFormDialog.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/features/api-keys/components/StandaloneKeyFormDialog.vue b/frontend/src/features/api-keys/components/StandaloneKeyFormDialog.vue index 0a0cd13..5f8cde6 100644 --- a/frontend/src/features/api-keys/components/StandaloneKeyFormDialog.vue +++ b/frontend/src/features/api-keys/components/StandaloneKeyFormDialog.vue @@ -330,6 +330,7 @@ import { useFormDialog } from '@/composables/useFormDialog' import { getProvidersSummary } from '@/api/endpoints/providers' import { getGlobalModels } from '@/api/global-models' import { adminApi } from '@/api/admin' +import { log } from '@/utils/logger' import { parseNumberInput } from '@/utils/form' import type { ProviderWithEndpointsSummary, GlobalModelResponse } from '@/api/endpoints/types' @@ -436,7 +437,7 @@ async function loadAccessRestrictionOptions() { globalModels.value = modelsData.models || [] allApiFormats.value = formatsData.formats?.map((f: any) => f.value) || [] } catch (err) { - console.error('加载访问限制选项失败:', err) + log.error('加载访问限制选项失败:', err) } }