mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-08 00:18:12 +08:00
### What problem does this PR solve? Fix: Bugs fixed (#13109) - chat pdf preview error - data source add box error - change route next-chat -> chat , next-search->search ... ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@@ -8,12 +8,12 @@ import {
|
||||
Popup,
|
||||
} from 'react-pdf-highlighter';
|
||||
|
||||
import { useCatchDocumentError } from '@/components/pdf-previewer/hooks';
|
||||
import { Spin } from '@/components/ui/spin';
|
||||
// import FileError from '@/pages/document-viewer/file-error';
|
||||
import { Authorization } from '@/constants/authorization';
|
||||
import FileError from '@/pages/document-viewer/file-error';
|
||||
import { getAuthorization } from '@/utils/authorization-util';
|
||||
import { useCatchDocumentError } from '../pdf-previewer/hooks';
|
||||
import styles from './index.module.less';
|
||||
type PdfLoaderProps = React.ComponentProps<typeof PdfLoader> & {
|
||||
httpHeaders?: Record<string, string>;
|
||||
@@ -149,3 +149,4 @@ const PdfPreview = ({
|
||||
};
|
||||
|
||||
export default memo(PdfPreview);
|
||||
export { PdfPreview };
|
||||
|
||||
Reference in New Issue
Block a user