mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-02-06 18:45:08 +08:00
### What problem does this PR solve? Add admin UI for RAGFlow ### Type of change - [x] New Feature (non-breaking change which adds functionality)
30 lines
621 B
JavaScript
30 lines
621 B
JavaScript
import { Routes } from '@/routes';
|
|
import { Button, Result } from 'antd';
|
|
import { history, useLocation } from 'umi';
|
|
|
|
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;
|