perf: pdf

This commit is contained in:
wangdan-fit2cloud 2025-07-12 15:01:52 +08:00
parent 34e84602ff
commit be4f0ffb6b

View File

@ -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('')