Add ToolsFramework #32

Merged
FatttSnake merged 26 commits from FatttSnake into dev 2023-10-14 18:36:50 +08:00
4 changed files with 20 additions and 3 deletions
Showing only changes of commit 49b955169f - Show all commits

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,