Add UserFramework
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import React from 'react'
|
||||
import tools from '@/router/tools'
|
||||
import home from '@/router/home'
|
||||
import user from '@/router/user.tsx'
|
||||
|
||||
const mapJsonToRoute = (jsonObject: RouteJsonObject[]): RouteObject[] => {
|
||||
return jsonObject.map((value) => ({
|
||||
@@ -55,6 +56,14 @@ const root: RouteJsonObject[] = [
|
||||
name: '工具',
|
||||
auth: false
|
||||
},
|
||||
{
|
||||
path: '/user',
|
||||
id: 'userFramework',
|
||||
component: React.lazy(() => import('@/pages/UserFramework')),
|
||||
children: setTitle(user, '个人中心'),
|
||||
name: '个人中心',
|
||||
auth: true
|
||||
},
|
||||
{
|
||||
path: '',
|
||||
id: 'homeFramework',
|
||||
|
||||
Reference in New Issue
Block a user