Optimize ToolsFramework router

This commit is contained in:
2023-10-11 16:18:18 +08:00
parent bd1e699543
commit 49b955169f
4 changed files with 20 additions and 3 deletions

View File

@@ -0,0 +1,7 @@
import React from 'react'
const ToolsFramework: React.FC = () => {
return <></>
}
export default ToolsFramework

View File

@@ -17,9 +17,19 @@ const routes: RouteObject[] = [
},
{
path: '/tools',
id: 'tools',
Component: React.lazy(() => import('@/pages/Tools')),
id: 'toolsFramework',
Component: React.lazy(() => import('@/pages/ToolsFramework')),
children: [
{
path: '',
id: 'tools',
Component: React.lazy(() => import('@/pages/tools')),
handle: {
name: '全部工具',
menu: true,
auth: false
}
},
{
path: 'translation',
id: 'tools-translation',
@@ -45,7 +55,7 @@ const routes: RouteObject[] = [
{
path: '',
id: 'home',
Component: React.lazy(() => import('@/pages/Home')),
Component: React.lazy(() => import('@/pages/home')),
handle: {
name: '主页',
menu: true,