mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-25 09:53:29 +08:00
Fix: thumbnails issue in chat (#14415)
[Uploading part_4-13.pdf…]() ### What problem does this PR solve? In chat, the thumbnails didn't display correctly ### Type of change - [ ] Bug Fix (non-breaking change which fixes an issue) Steps to reproduce: 1. create dataset and upload a file (see attached) 2. parse the document 3. once parsing completed, create a chat and associate it with the dataset 4. ask a question (DAP VS DAPE comparison) 5. check result
This commit is contained in:
@@ -7,7 +7,7 @@ import {
|
||||
CarouselPrevious,
|
||||
} from '@/components/ui/carousel';
|
||||
import { IReferenceChunk } from '@/interfaces/database/chat';
|
||||
import { webAPI } from '@/utils/api';
|
||||
import { restAPIv1 } from '@/utils/api';
|
||||
import { isPlainObject } from 'lodash';
|
||||
import { RotateCw, ZoomIn, ZoomOut } from 'lucide-react';
|
||||
import { useMemo } from 'react';
|
||||
@@ -79,7 +79,7 @@ function ImageCarousel({ images }: { images: ImageItem[] }) {
|
||||
@2xl:basis-1/6
|
||||
"
|
||||
>
|
||||
<PhotoView src={`${webAPI}/document/image/${id}`}>
|
||||
<PhotoView src={`${restAPIv1}/documents/images/${id}`}>
|
||||
<Image
|
||||
id={id}
|
||||
className="h-40 w-full"
|
||||
|
||||
Reference in New Issue
Block a user