Add tools menu and submenu
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user