From b3e2cd06fbe3120120b44dce93bcd3bc2b24f5f0 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Tue, 3 Nov 2026 17:16:08 +0800 Subject: [PATCH] fix: api key --- .../left-sidebar/account-menu/ApiKeyDialog.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ui/src/conversation-panel/left-sidebar/account-menu/ApiKeyDialog.vue b/ui/src/conversation-panel/left-sidebar/account-menu/ApiKeyDialog.vue index f556e69f79b..b734dba1492 100644 --- a/ui/src/conversation-panel/left-sidebar/account-menu/ApiKeyDialog.vue +++ b/ui/src/conversation-panel/left-sidebar/account-menu/ApiKeyDialog.vue @@ -10,6 +10,7 @@ const router = useRouter() const dialogVisible = ref(false) const apiKey = ref('') const loading = ref(false) +const mcpServiceType = ref<'agent' | 'knowledge'>('agent') const apiUrl = computed(() => new URL(router.resolve({ name: 'portal-home' }).href, window.location.origin).href) const maskedApiKey = computed(() => (apiKey.value ? `******${apiKey.value.slice(-4)}` : '')) @@ -34,6 +35,7 @@ function open() { function resetData() { apiKey.value = '' + mcpServiceType.value = 'agent' } defineExpose({ open }) @@ -41,6 +43,8 @@ defineExpose({ open })