Add tools menu and submenu

This commit is contained in:
2023-09-26 18:29:34 +08:00
parent dfe559e630
commit 9d74dce8b1
6 changed files with 105 additions and 5 deletions

View File

@@ -23,7 +23,7 @@ const routes: RouteObject[] = [
{
path: '',
id: 'home',
Component: React.lazy(() => import('@/components/home')),
Component: React.lazy(() => import('@/pages/Home')),
handle: {
name: '主页',
menu: true,
@@ -38,6 +38,38 @@ const routes: RouteObject[] = [
menu: true,
auth: false
}
},
{
path: 'tools',
id: 'tools',
Component: React.lazy(() => import('@/pages/Tools')),
children: [
{
path: 'translation',
id: 'tools-translation',
Component: React.lazy(() => import('@/pages/tools/Translation')),
handle: {
name: '翻译',
menu: true,
auth: false
}
},
{
path: 'translation',
id: 'tools-translationa',
Component: React.lazy(() => import('@/pages/tools/Translation')),
handle: {
name: '翻译',
menu: true,
auth: false
}
}
],
handle: {
name: '工具',
menu: true,
auth: false
}
}
]
},