Skip to content

Commit be4f0ff

Browse files
perf: pdf
1 parent 34e8460 commit be4f0ff

File tree

1 file changed

+5
-1
lines changed
  • ui/src/components/ai-chat/component/knowledge-source-component

1 file changed

+5
-1
lines changed

ui/src/components/ai-chat/component/knowledge-source-component/index.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,11 @@ const props = defineProps({
131131
132132
const emit = defineEmits(['openExecutionDetail', 'openParagraph', 'openParagraphDocument'])
133133
const showPDF = (item: any) => {
134-
return item.document_name.toLocaleLowerCase().endsWith('.pdf') && item.meta?.source_file_id
134+
return (
135+
item.document_name.toLocaleLowerCase().endsWith('.pdf') &&
136+
item.meta?.source_file_id &&
137+
!props.executionIsRightPanel
138+
)
135139
}
136140
const dialogVisible = ref(false)
137141
const dialogTitle = ref('')

0 commit comments

Comments
 (0)