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',
|
path: '/tools',
|
||||||
id: 'tools',
|
id: 'toolsFramework',
|
||||||
Component: React.lazy(() => import('@/pages/Tools')),
|
Component: React.lazy(() => import('@/pages/ToolsFramework')),
|
||||||
children: [
|
children: [
|
||||||
|
{
|
||||||
|
path: '',
|
||||||
|
id: 'tools',
|
||||||
|
Component: React.lazy(() => import('@/pages/tools')),
|
||||||
|
handle: {
|
||||||
|
name: '全部工具',
|
||||||
|
menu: true,
|
||||||
|
auth: false
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: 'translation',
|
path: 'translation',
|
||||||
id: 'tools-translation',
|
id: 'tools-translation',
|
||||||
@@ -45,7 +55,7 @@ const routes: RouteObject[] = [
|
|||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
id: 'home',
|
id: 'home',
|
||||||
Component: React.lazy(() => import('@/pages/Home')),
|
Component: React.lazy(() => import('@/pages/home')),
|
||||||
handle: {
|
handle: {
|
||||||
name: '主页',
|
name: '主页',
|
||||||
menu: true,
|
menu: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user