Update dependencies. Add page. Optimize code.
This commit is contained in:
@@ -21,6 +21,8 @@ const home: RouteJsonObject[] = [
|
||||
path: '/tools',
|
||||
absolutePath: '/tools',
|
||||
id: 'url-tools',
|
||||
name: '工具',
|
||||
menu: true,
|
||||
children: [
|
||||
{
|
||||
path: 'translation',
|
||||
@@ -29,9 +31,7 @@ const home: RouteJsonObject[] = [
|
||||
name: '翻译',
|
||||
menu: true
|
||||
}
|
||||
],
|
||||
name: '工具',
|
||||
menu: true
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
@@ -5,10 +5,44 @@ const user: RouteJsonObject[] = [
|
||||
path: '',
|
||||
absolutePath: '/system',
|
||||
id: 'system',
|
||||
component: React.lazy(() => import('@/pages/system')),
|
||||
name: '系统设置',
|
||||
icon: React.lazy(() => import('~icons/fatweb/setting.jsx')),
|
||||
menu: true
|
||||
},
|
||||
{
|
||||
path: 'user',
|
||||
absolutePath: '/system/user',
|
||||
id: 'system-user',
|
||||
component: React.lazy(() => import('@/pages/system/User')),
|
||||
name: '用户管理',
|
||||
icon: React.lazy(() => import('~icons/fatweb/user.jsx')),
|
||||
menu: true,
|
||||
permission: true,
|
||||
autoHide: true
|
||||
},
|
||||
{
|
||||
path: 'role',
|
||||
absolutePath: '/system/role',
|
||||
id: 'system-role',
|
||||
component: React.lazy(() => import('@/pages/system/Role')),
|
||||
name: '角色管理',
|
||||
icon: React.lazy(() => import('~icons/fatweb/role.jsx')),
|
||||
menu: true,
|
||||
permission: true,
|
||||
autoHide: true
|
||||
},
|
||||
{
|
||||
path: 'group',
|
||||
absolutePath: '/system/group',
|
||||
id: 'system-group',
|
||||
component: React.lazy(() => import('@/pages/system/Group')),
|
||||
name: '群组管理',
|
||||
icon: React.lazy(() => import('~icons/fatweb/group.jsx')),
|
||||
menu: true,
|
||||
permission: true,
|
||||
autoHide: true
|
||||
},
|
||||
{
|
||||
path: '*',
|
||||
absolutePath: '*',
|
||||
|
||||
@@ -6,8 +6,8 @@ export const tools: RouteJsonObject[] = [
|
||||
absolutePath: '/tools',
|
||||
id: 'tools',
|
||||
component: React.lazy(() => import('@/pages/tools')),
|
||||
icon: React.lazy(() => import('~icons/fatweb/home.jsx')),
|
||||
name: '主页',
|
||||
icon: React.lazy(() => import('~icons/fatweb/home.jsx')),
|
||||
menu: true,
|
||||
auth: false
|
||||
},
|
||||
|
||||
@@ -5,6 +5,7 @@ const user: RouteJsonObject[] = [
|
||||
path: '',
|
||||
absolutePath: '/user',
|
||||
id: 'user',
|
||||
component: React.lazy(() => import('@/pages/user')),
|
||||
name: '个人档案',
|
||||
icon: React.lazy(() => import('~icons/fatweb/user.jsx')),
|
||||
menu: true
|
||||
|
||||
Reference in New Issue
Block a user