Optimize route
This commit is contained in:
@@ -34,6 +34,7 @@ export const tools: RouteJsonObject[] = [
|
||||
children: [
|
||||
{
|
||||
path: '1',
|
||||
absolutePath: '/tools/translation/1',
|
||||
id: '1',
|
||||
name: '翻译1',
|
||||
icon: React.lazy(() => import('~icons/fatweb/logo.jsx')),
|
||||
@@ -42,6 +43,7 @@ export const tools: RouteJsonObject[] = [
|
||||
},
|
||||
{
|
||||
path: '2',
|
||||
absolutePath: '/tools/translation/2',
|
||||
id: '2',
|
||||
name: '翻译2',
|
||||
menu: true,
|
||||
@@ -51,6 +53,7 @@ export const tools: RouteJsonObject[] = [
|
||||
},
|
||||
{
|
||||
path: 'translation-',
|
||||
absolutePath: '/tools/translation-',
|
||||
id: 'tools-translation-',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译-',
|
||||
@@ -60,6 +63,7 @@ export const tools: RouteJsonObject[] = [
|
||||
children: [
|
||||
{
|
||||
path: '1-',
|
||||
absolutePath: '/tools/translation-/1-',
|
||||
id: '1-',
|
||||
name: '翻译1-',
|
||||
menu: true,
|
||||
@@ -67,6 +71,7 @@ export const tools: RouteJsonObject[] = [
|
||||
},
|
||||
{
|
||||
path: '2-',
|
||||
absolutePath: '/tools/translation-/2-',
|
||||
id: '2-',
|
||||
name: '翻译2-',
|
||||
menu: true,
|
||||
@@ -76,6 +81,7 @@ export const tools: RouteJsonObject[] = [
|
||||
},
|
||||
{
|
||||
path: 'translation--',
|
||||
absolutePath: '/tools/translation--',
|
||||
id: 'tools-translation--',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--',
|
||||
@@ -85,6 +91,7 @@ export const tools: RouteJsonObject[] = [
|
||||
},
|
||||
{
|
||||
path: 'translation--1',
|
||||
absolutePath: '/tools/translation--1',
|
||||
id: 'tools-translation--1',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--1',
|
||||
@@ -94,6 +101,7 @@ export const tools: RouteJsonObject[] = [
|
||||
},
|
||||
{
|
||||
path: 'translation--2',
|
||||
absolutePath: '/tools/translation--2',
|
||||
id: 'tools-translation--2',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--2',
|
||||
@@ -103,6 +111,7 @@ export const tools: RouteJsonObject[] = [
|
||||
},
|
||||
{
|
||||
path: 'translation--3',
|
||||
absolutePath: '/tools/translation--3',
|
||||
id: 'tools-translation--3',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--3',
|
||||
@@ -112,6 +121,7 @@ export const tools: RouteJsonObject[] = [
|
||||
},
|
||||
{
|
||||
path: 'translation--4',
|
||||
absolutePath: '/tools/translation--4',
|
||||
id: 'tools-translation--4',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--4',
|
||||
@@ -121,6 +131,7 @@ export const tools: RouteJsonObject[] = [
|
||||
},
|
||||
{
|
||||
path: 'translation--5',
|
||||
absolutePath: '/tools/translation--5',
|
||||
id: 'tools-translation--5',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--5',
|
||||
@@ -130,6 +141,7 @@ export const tools: RouteJsonObject[] = [
|
||||
},
|
||||
{
|
||||
path: 'translation--6',
|
||||
absolutePath: '/tools/translation--6',
|
||||
id: 'tools-translation--6',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--6',
|
||||
@@ -139,6 +151,7 @@ export const tools: RouteJsonObject[] = [
|
||||
},
|
||||
{
|
||||
path: 'translation--7',
|
||||
absolutePath: '/tools/translation--7',
|
||||
id: 'tools-translation--7',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--7',
|
||||
@@ -148,6 +161,7 @@ export const tools: RouteJsonObject[] = [
|
||||
},
|
||||
{
|
||||
path: 'translation--8',
|
||||
absolutePath: '/tools/translation--8',
|
||||
id: 'tools-translation--8',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--8',
|
||||
@@ -157,6 +171,7 @@ export const tools: RouteJsonObject[] = [
|
||||
},
|
||||
{
|
||||
path: 'translation--9',
|
||||
absolutePath: '/tools/translation--9',
|
||||
id: 'tools-translation--9',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--9',
|
||||
@@ -166,6 +181,7 @@ export const tools: RouteJsonObject[] = [
|
||||
},
|
||||
{
|
||||
path: 'translation--10',
|
||||
absolutePath: '/tools/translation--10',
|
||||
id: 'tools-translation--10',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--10',
|
||||
@@ -175,6 +191,7 @@ export const tools: RouteJsonObject[] = [
|
||||
},
|
||||
{
|
||||
path: 'translation--1-',
|
||||
absolutePath: '/tools/translation--1-',
|
||||
id: 'tools-translation--1-',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--1-',
|
||||
@@ -184,6 +201,7 @@ export const tools: RouteJsonObject[] = [
|
||||
},
|
||||
{
|
||||
path: 'translation--2-',
|
||||
absolutePath: '/tools/translation--2-',
|
||||
id: 'tools-translation--2-',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--2-',
|
||||
@@ -193,6 +211,7 @@ export const tools: RouteJsonObject[] = [
|
||||
},
|
||||
{
|
||||
path: 'translation--3-',
|
||||
absolutePath: '/tools/translation--3-',
|
||||
id: 'tools-translation--3-',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--3-',
|
||||
@@ -202,6 +221,7 @@ export const tools: RouteJsonObject[] = [
|
||||
},
|
||||
{
|
||||
path: 'translation--4-',
|
||||
absolutePath: '/tools/translation--4-',
|
||||
id: 'tools-translation--4-',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--4-',
|
||||
@@ -211,6 +231,7 @@ export const tools: RouteJsonObject[] = [
|
||||
},
|
||||
{
|
||||
path: 'translation--5-',
|
||||
absolutePath: '/tools/translation--5-',
|
||||
id: 'tools-translation--5-',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--5-',
|
||||
@@ -220,6 +241,7 @@ export const tools: RouteJsonObject[] = [
|
||||
},
|
||||
{
|
||||
path: 'translation--6-',
|
||||
absolutePath: '/tools/translation--6-',
|
||||
id: 'tools-translation--6-',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--6-',
|
||||
@@ -229,6 +251,7 @@ export const tools: RouteJsonObject[] = [
|
||||
},
|
||||
{
|
||||
path: 'translation--7-',
|
||||
absolutePath: '/tools/translation--7-',
|
||||
id: 'tools-translation--7-',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--7-',
|
||||
@@ -238,6 +261,7 @@ export const tools: RouteJsonObject[] = [
|
||||
},
|
||||
{
|
||||
path: 'translation--8-',
|
||||
absolutePath: '/tools/translation--8-',
|
||||
id: 'tools-translation--8-',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--8-',
|
||||
@@ -247,6 +271,7 @@ export const tools: RouteJsonObject[] = [
|
||||
},
|
||||
{
|
||||
path: 'translation--9-',
|
||||
absolutePath: '/tools/translation--9-',
|
||||
id: 'tools-translation--9-',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--9-',
|
||||
@@ -256,6 +281,7 @@ export const tools: RouteJsonObject[] = [
|
||||
},
|
||||
{
|
||||
path: 'translation--10-',
|
||||
absolutePath: '/tools/translation--10-',
|
||||
id: 'tools-translation--10-',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--10-',
|
||||
@@ -265,6 +291,7 @@ export const tools: RouteJsonObject[] = [
|
||||
children: [
|
||||
{
|
||||
path: '1-1',
|
||||
absolutePath: '/tools/translation--10-/1-1',
|
||||
id: '1-1',
|
||||
name: '翻译1-',
|
||||
menu: true,
|
||||
@@ -272,6 +299,7 @@ export const tools: RouteJsonObject[] = [
|
||||
},
|
||||
{
|
||||
path: '2-1',
|
||||
absolutePath: '/tools/translation--10-/2-1',
|
||||
id: '2-1',
|
||||
name: '翻译2-',
|
||||
menu: true,
|
||||
@@ -281,6 +309,7 @@ export const tools: RouteJsonObject[] = [
|
||||
},
|
||||
{
|
||||
path: '*',
|
||||
absolutePath: '*',
|
||||
element: <Navigate to="/tools" replace />
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user