Files
oxygen-ui/src/router/tools.tsx

42 lines
1.0 KiB
TypeScript

export const tools: RouteJsonObject[] = [
{
path: '',
absolutePath: '/',
id: 'tools',
component: lazy(() => import('@/pages/Tools')),
name: '主页',
icon: lazy(() => import('~icons/oxygen/home')),
menu: true,
auth: false
},
{
path: 'store',
absolutePath: '/store',
id: 'tools-store',
component: lazy(() => import('@/pages/Tools')),
name: '工具商店',
titlePostfix: ' - 商店',
icon: lazy(() => import('~icons/oxygen/store')),
menu: true,
auth: true
},
{
path: 'create',
absolutePath: '/create',
id: 'tools-create',
component: lazy(() => import('@/pages/Tools/Create')),
name: '创建工具',
titlePostfix: ' - 创建新工具',
icon: lazy(() => import('~icons/oxygen/newProject')),
menu: true,
auth: true
},
{
path: '*',
absolutePath: '*',
element: <Navigate to="/" replace />
}
]
export default tools