chore: dashboard

This commit is contained in:
lencx
2023-01-24 13:23:06 +08:00
parent 1f573102d3
commit f1e528d3a7
12 changed files with 269 additions and 95 deletions

8
src/routes.tsx vendored
View File

@@ -22,6 +22,7 @@ import SyncRecord from '@/view/model/SyncRecord';
import Download from '@/view/download';
import Notes from '@/view/notes';
import Markdown from '@/view/markdown';
import Dashboard from '@/view/dashboard';
export type ChatRouteMetaObject = {
label: string;
@@ -38,7 +39,7 @@ type ChatRouteObject = {
export const routes: Array<ChatRouteObject> = [
{
path: '/',
path: '/awesome',
element: <Awesome />,
meta: {
label: 'Awesome',
@@ -121,6 +122,11 @@ export const routes: Array<ChatRouteObject> = [
icon: <InfoCircleOutlined />,
},
},
{
path: '/',
element: <Dashboard />,
hideMenu: true,
},
];
type MenuItem = Required<MenuProps>['items'][number];