From a3ae33bf7c2ec428204420dc36a2e21839a5ccef Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Sat, 12 Jul 2025 13:22:23 +0800 Subject: [PATCH] fix: change workspace --- .../ai-chat/component/knowledge-source-component/index.vue | 2 ++ ui/src/layout/layout-header/UserHeader.vue | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/src/components/ai-chat/component/knowledge-source-component/index.vue b/ui/src/components/ai-chat/component/knowledge-source-component/index.vue index 90b331d8f..d071fefdc 100644 --- a/ui/src/components/ai-chat/component/knowledge-source-component/index.vue +++ b/ui/src/components/ai-chat/component/knowledge-source-component/index.vue @@ -149,6 +149,7 @@ function openParagraph(row: any, id?: string) { emit('openParagraph') return } + dialogType.value = '' currentComponent.value = ParagraphSourceContent currentChatDetail.value = obj dialogVisible.value = true @@ -159,6 +160,7 @@ function openExecutionDetail(row: any) { emit('openExecutionDetail') return } + dialogType.value = '' currentComponent.value = ExecutionDetailContent currentChatDetail.value = row dialogVisible.value = true diff --git a/ui/src/layout/layout-header/UserHeader.vue b/ui/src/layout/layout-header/UserHeader.vue index acc7b8eb4..5720b301f 100644 --- a/ui/src/layout/layout-header/UserHeader.vue +++ b/ui/src/layout/layout-header/UserHeader.vue @@ -50,9 +50,9 @@ function changeWorkspace(item: WorkspaceItem) { } = route as any if (item.id === user.workspace_id) return user.setWorkspaceId(item.id || 'default') - if (activeMenu.includes('application')) { + if (activeMenu.includes('application') && route.path != '/application') { router.push('/application') - } else if (activeMenu.includes('knowledge')) { + } else if (activeMenu.includes('knowledge') && route.path != '/knowledge') { router.push('/knowledge') } else { window.location.reload()