mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-02-01 16:15:07 +08:00
Refactor: UmiJs -> Vite (#12410)
### What problem does this PR solve? Refactor: UmiJs -> Vite+React ### Type of change - [x] Refactoring --------- Co-authored-by: Liu An <asiro@qq.com>
This commit is contained in:
29
web/src/pages/404.tsx
Normal file
29
web/src/pages/404.tsx
Normal file
@ -0,0 +1,29 @@
|
||||
import { Routes } from '@/routes';
|
||||
import { history } from '@/utils/simple-history-util';
|
||||
import { Button, Result } from 'antd';
|
||||
import { useLocation } from 'react-router';
|
||||
const NoFoundPage = () => {
|
||||
const location = useLocation();
|
||||
|
||||
return (
|
||||
<Result
|
||||
status="404"
|
||||
title="404"
|
||||
subTitle="Page not found, please enter a correct address."
|
||||
extra={
|
||||
<Button
|
||||
type="primary"
|
||||
onClick={() => {
|
||||
history.push(
|
||||
location.pathname.startsWith(Routes.Admin) ? Routes.Admin : '/',
|
||||
);
|
||||
}}
|
||||
>
|
||||
Business
|
||||
</Button>
|
||||
}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
export default NoFoundPage;
|
||||
Reference in New Issue
Block a user