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:
chanx
2026-01-04 19:14:20 +08:00
committed by GitHub
parent 2c10ccd622
commit a8a060676a
168 changed files with 12808 additions and 23476 deletions

29
web/src/pages/404.tsx Normal file
View 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;