Fix: Bugs fixed (#13109) (#13122)

### 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:
chanx
2026-02-12 13:42:12 +08:00
committed by GitHub
parent 65ebc06956
commit 7210178620
6 changed files with 43 additions and 19 deletions

View File

@@ -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 };