Add UserFramework

This commit is contained in:
2023-10-17 18:33:21 +08:00
parent 8c1bd15dc2
commit 5d71433d63
3 changed files with 63 additions and 0 deletions

View File

@@ -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',