chore: about

This commit is contained in:
lencx
2023-01-23 20:29:05 +08:00
parent d5df706b47
commit 1f573102d3
9 changed files with 143 additions and 1 deletions

12
src/routes.tsx vendored
View File

@@ -8,10 +8,12 @@ import {
DownloadOutlined,
FormOutlined,
GlobalOutlined,
InfoCircleOutlined,
} from '@ant-design/icons';
import type { MenuProps } from 'antd';
import Settings from '@/view/settings';
import About from '@/view/about';
import Awesome from '@/view/awesome';
import UserCustom from '@/view/model/UserCustom';
import SyncPrompts from '@/view/model/SyncPrompts';
@@ -96,7 +98,7 @@ export const routes: Array<ChatRouteObject> = [
],
},
{
path: 'download',
path: '/download',
element: <Download />,
meta: {
label: 'Download',
@@ -111,6 +113,14 @@ export const routes: Array<ChatRouteObject> = [
icon: <SettingOutlined />,
},
},
{
path: '/about',
element: <About />,
meta: {
label: 'About',
icon: <InfoCircleOutlined />,
},
},
];
type MenuItem = Required<MenuProps>['items'][number];