fix: preview chunk summary

This commit is contained in:
zxhlyh 2026-01-23 11:12:27 +08:00
parent 513a49b969
commit ce81d62d40
1 changed files with 3 additions and 0 deletions

View File

@ -8,6 +8,7 @@ import { useTranslation } from 'react-i18next'
import Badge from '@/app/components/base/badge'
import Button from '@/app/components/base/button'
import { SkeletonContainer, SkeletonPoint, SkeletonRectangle, SkeletonRow } from '@/app/components/base/skeleton'
import SummaryLabel from '@/app/components/datasets/documents/detail/completed/common/summary-label'
import { useDatasetDetailContextWithSelector } from '@/context/dataset-detail'
import { ChunkingMode } from '@/models/datasets'
import { DatasourceType } from '@/models/pipeline'
@ -181,6 +182,7 @@ const ChunkPreview = ({
characterCount={item.content.length}
>
{item.content}
{item.summary && <SummaryLabel summary={item.summary} />}
</ChunkContainer>
))
)}
@ -207,6 +209,7 @@ const ChunkPreview = ({
/>
)
})}
{item.summary && <SummaryLabel summary={item.summary} />}
</FormattedText>
</ChunkContainer>
)