Optimize ToolsFramework router
This commit is contained in:
7
src/pages/ToolsFramework.tsx
Normal file
7
src/pages/ToolsFramework.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import React from 'react'
|
||||
|
||||
const ToolsFramework: React.FC = () => {
|
||||
return <></>
|
||||
}
|
||||
|
||||
export default ToolsFramework
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user