From c139c9b0de772499e0bf31b2359fb623b9a43a98 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Fri, 27 Nov 2026 18:46:05 +0800 Subject: [PATCH] fix: [Intelligent agent] Floating window embedding. After opening the knowledge source or executing details, the closing button of the floating window and the knowledge source overlap, making it impossible to close the knowledge source drawer --- .../right-sidebar/execution-detail/index.vue | 13 +++++-- .../right-sidebar/knowledge-source/index.vue | 35 ++++++++----------- 2 files changed, 25 insertions(+), 23 deletions(-) diff --git a/ui/src/conversation-panel/right-sidebar/execution-detail/index.vue b/ui/src/conversation-panel/right-sidebar/execution-detail/index.vue index 2a71eef9f8e..145b6e84af9 100644 --- a/ui/src/conversation-panel/right-sidebar/execution-detail/index.vue +++ b/ui/src/conversation-panel/right-sidebar/execution-detail/index.vue @@ -3,11 +3,12 @@ import { useI18n } from 'vue-i18n' import ExecutionDetailContent from '@/workflow-canvas/execution-details/index.vue' import { WorkflowMode } from '@/workflow-canvas/types' import { useRightSidebarStore } from '../index' +import { useViewType } from '@/conversation-panel/view'; withDefaults(defineProps<{ workflowMode?: WorkflowMode }>(), { workflowMode: WorkflowMode.Application, }) - +const viewType = useViewType() const { t } = useI18n({ useScope: 'global' }) const { executionDetail, closeRightSide } = useRightSidebarStore() const { executionDetails: detail } = executionDetail @@ -17,9 +18,15 @@ const { executionDetails: detail } = executionDetail
-

{{ t('execution.details.title') }}

+ +
+ + + +

{{ t('execution.details.title') }}

+
- +
diff --git a/ui/src/conversation-panel/right-sidebar/knowledge-source/index.vue b/ui/src/conversation-panel/right-sidebar/knowledge-source/index.vue index 6f947b9206b..fd9a27ef144 100644 --- a/ui/src/conversation-panel/right-sidebar/knowledge-source/index.vue +++ b/ui/src/conversation-panel/right-sidebar/knowledge-source/index.vue @@ -4,9 +4,10 @@ import { DOCUMENT_RESOURCE_TYPE } from '@/api/enums' import { useRightSidebarStore } from '../index' import DocumentPreview from './document-preview/index.vue' import { getFileIconUrl } from '@/utils/icon' +import { useViewType } from '@/conversation-panel/view/index.ts' defineOptions({ name: 'KnowledgeSource' }) - +const viewType = useViewType() const { t } = useI18n({ useScope: 'global' }) const { knowledgeSource, closeRightSide } = useRightSidebarStore() const { previewDocument, sourceParagraphs, count, openDocument } = knowledgeSource @@ -18,9 +19,14 @@ const { previewDocument, sourceParagraphs, count, openDocument } = knowledgeSour
-

{{ t('chat.knowledgeSource.label') }} ({{ count }})

+
+ + + +

{{ t('chat.knowledgeSource.label') }} ({{ count }})

+
- +
@@ -43,28 +49,17 @@ const { previewDocument, sourceParagraphs, count, openDocument } = knowledgeSour - + - +
- + {{ paragraph.documentName }}