Rename MainFramework to HomeFramework. Move tools to independent path.

This commit is contained in:
2023-10-11 14:02:02 +08:00
parent fef848e5f7
commit 42c970f9d1
3 changed files with 38 additions and 21 deletions

View File

@@ -15,10 +15,32 @@ const routes: RouteObject[] = [
id: 'loading',
Component: React.lazy(() => import('@/components/common/LoadingMask'))
},
{
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: true
}
}
],
handle: {
name: '工具',
title: '工具',
auth: false
}
},
{
path: '',
id: 'mainFramework',
Component: React.lazy(() => import('@/pages/MainFramework')),
id: 'homeFramework',
Component: React.lazy(() => import('@/pages/HomeFramework')),
children: [
{
path: '',
@@ -32,33 +54,28 @@ const routes: RouteObject[] = [
},
{
path: 'https://blog.fatweb.top',
id: 'blog',
id: 'url-blog',
handle: {
name: '博客',
menu: true,
auth: false
menu: true
}
},
{
path: 'tools',
id: 'tools',
Component: React.lazy(() => import('@/pages/Tools')),
path: '/tools',
id: 'url-tools',
children: [
{
path: 'translation',
id: 'tools-translation',
Component: React.lazy(() => import('@/pages/tools/Translation')),
id: 'url-tools-translation',
handle: {
name: '翻译',
menu: true,
auth: false
menu: true
}
}
],
handle: {
name: '工具',
menu: true,
auth: false
menu: true
}
}
]