diff options
Diffstat (limited to 'src/routes.ts')
| -rw-r--r-- | src/routes.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/routes.ts b/src/routes.ts index 83f97b6..f0a0ef8 100644 --- a/src/routes.ts +++ b/src/routes.ts @@ -1,4 +1,4 @@ -import { HouseIcon, InfoIcon, UserIcon } from '@phosphor-icons/react' +import { ClipboardTextIcon, HouseIcon, InfoIcon, UserIcon } from '@phosphor-icons/react' import type { Icon } from '@phosphor-icons/react' import type { RouteObject } from 'react-router' import App from './App.tsx' @@ -18,6 +18,12 @@ export const pageRoutes = [ handle: { title: '首页', icon: HouseIcon }, }, { + id: 'form', + path: '/form', + lazy: async () => ({ Component: (await import('./FormExample.tsx')).default }), + handle: { title: '表单示例', icon: ClipboardTextIcon }, + }, + { id: 'about', path: '/about', handle: { title: '关于', icon: InfoIcon }, |
