From 7b8d96fd1dd184d073f4a8e9cd81e63efeffdbce Mon Sep 17 00:00:00 2001 From: panxinying Date: Mon, 30 Nov 2026 18:17:54 +0800 Subject: [PATCH] fix: details for document segments and images in the shared knowledge base are not displayed --- ui/src/views/document-detail/index.vue | 6 +++--- ui/src/views/knowledge-detail/library/image/index.vue | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ui/src/views/document-detail/index.vue b/ui/src/views/document-detail/index.vue index 3090202bb2c..f0929430286 100644 --- a/ui/src/views/document-detail/index.vue +++ b/ui/src/views/document-detail/index.vue @@ -168,7 +168,7 @@ async function handleOpenCreateParagraph(position?: number) { } async function handleOpenParagraphDetail(paragraph: ParagraphItem, initialMode: 'detail' | 'edit' = 'detail') { - if (loading.value) return + if (loading.value || isWorkspaceSharedResource()) return editDialogMounted.value = true await nextTick() editDialogRef.value?.open(paragraph, initialMode) @@ -362,9 +362,9 @@ onMounted(() => {
>() const selectedParagraph = ref() +const imageRowClassName = computed(() => (isWorkspaceSharedResource() ? '' : 'cursor-pointer')) function handleOpenParagraph(document: DocumentItem, column?: TableColumnCtx | null) { - if (loading.value || operationLoading.value || selectedParagraph.value || column?.type === 'selection') return + if (isWorkspaceSharedResource() || loading.value || operationLoading.value || selectedParagraph.value || column?.type === 'selection') return operationLoading.value = true return resourceApi.paragraph .getParagraphPage(knowledgeId.value, document.id, { currentPage: 1, pageSize: 1 }) @@ -333,7 +334,7 @@ onBeforeUnmount(() => { @size-change="loadDocuments()" @selection-change="handleSelectionChange" @row-click="handleOpenParagraph" - row-class-name="cursor-pointer" + :row-class-name="imageRowClassName" resizable >