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 d071fefd..fd738911 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 @@ -131,7 +131,11 @@ const props = defineProps({ const emit = defineEmits(['openExecutionDetail', 'openParagraph', 'openParagraphDocument']) const showPDF = (item: any) => { - return item.document_name.toLocaleLowerCase().endsWith('.pdf') && item.meta?.source_file_id + return ( + item.document_name.toLocaleLowerCase().endsWith('.pdf') && + item.meta?.source_file_id && + !props.executionIsRightPanel + ) } const dialogVisible = ref(false) const dialogTitle = ref('')