Rename MainFramework to HomeFramework. Move tools to independent path.
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user