Add nickname. Recode route.
This commit is contained in:
@@ -3,6 +3,7 @@ import React from 'react'
|
||||
const home: RouteJsonObject[] = [
|
||||
{
|
||||
path: '',
|
||||
absolutePath: '/',
|
||||
id: 'home',
|
||||
component: React.lazy(() => import('@/pages/home')),
|
||||
name: '主页',
|
||||
@@ -17,6 +18,7 @@ const home: RouteJsonObject[] = [
|
||||
},
|
||||
{
|
||||
path: '/tools',
|
||||
absolutePath: '/tools',
|
||||
id: 'url-tools',
|
||||
children: [
|
||||
{
|
||||
|
||||
@@ -39,17 +39,20 @@ const root: RouteJsonObject[] = [
|
||||
component: React.lazy(() => import('@/AuthRoute')),
|
||||
children: [
|
||||
{
|
||||
path: '/login',
|
||||
path: 'login',
|
||||
absolutePath: '/login',
|
||||
id: 'login',
|
||||
component: React.lazy(() => import('@/pages/Login'))
|
||||
},
|
||||
{
|
||||
path: '/loading',
|
||||
path: 'loading',
|
||||
absolutePath: '/loading',
|
||||
id: 'loading',
|
||||
component: React.lazy(() => import('@/components/common/LoadingMask'))
|
||||
},
|
||||
{
|
||||
path: '/tools',
|
||||
path: 'tools',
|
||||
absolutePath: '/tools',
|
||||
id: 'toolsFramework',
|
||||
component: React.lazy(() => import('@/pages/ToolsFramework')),
|
||||
children: setTitle(tools, '氮工具'),
|
||||
@@ -57,7 +60,8 @@ const root: RouteJsonObject[] = [
|
||||
auth: false
|
||||
},
|
||||
{
|
||||
path: '/user',
|
||||
path: 'user',
|
||||
absolutePath: '/user',
|
||||
id: 'userFramework',
|
||||
component: React.lazy(() => import('@/pages/UserFramework')),
|
||||
children: setTitle(user, '个人中心'),
|
||||
@@ -66,6 +70,7 @@ const root: RouteJsonObject[] = [
|
||||
},
|
||||
{
|
||||
path: '',
|
||||
absolutePath: '/',
|
||||
id: 'homeFramework',
|
||||
component: React.lazy(() => import('@/pages/HomeFramework')),
|
||||
children: home
|
||||
|
||||
@@ -3,6 +3,7 @@ import React from 'react'
|
||||
export const tools: RouteJsonObject[] = [
|
||||
{
|
||||
path: '',
|
||||
absolutePath: '/tools',
|
||||
id: 'tools',
|
||||
component: React.lazy(() => import('@/pages/tools')),
|
||||
icon: React.lazy(() => import('~icons/fatweb/home.jsx')),
|
||||
@@ -12,6 +13,7 @@ export const tools: RouteJsonObject[] = [
|
||||
},
|
||||
{
|
||||
path: 'all',
|
||||
absolutePath: '/tools/all',
|
||||
id: 'tools-all',
|
||||
component: React.lazy(() => import('@/pages/tools')),
|
||||
name: '全部工具',
|
||||
@@ -22,6 +24,7 @@ export const tools: RouteJsonObject[] = [
|
||||
},
|
||||
{
|
||||
path: 'translation',
|
||||
absolutePath: '/tools/translation',
|
||||
id: 'tools-translation',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译',
|
||||
|
||||
Reference in New Issue
Block a user