mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 14:49:43 +08:00
refactor: refactor dashboard
This commit is contained in:
@@ -6,14 +6,26 @@ const menu: MenuModule = {
|
||||
menu: {
|
||||
name: t('routes.dashboard.dashboard'),
|
||||
path: '/dashboard',
|
||||
tag: {
|
||||
dot: true,
|
||||
type: 'warn',
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: 'workbench',
|
||||
name: t('routes.dashboard.workbench'),
|
||||
},
|
||||
{
|
||||
path: 'analysis',
|
||||
name: t('routes.dashboard.analysis'),
|
||||
tag: {
|
||||
dot: true,
|
||||
type: 'warn',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'workbench',
|
||||
name: t('routes.dashboard.workbench'),
|
||||
tag: {
|
||||
dot: true,
|
||||
type: 'warn',
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
|
@@ -7,7 +7,7 @@ const dashboard: AppRouteModule = {
|
||||
path: '/dashboard',
|
||||
name: 'Dashboard',
|
||||
component: LAYOUT,
|
||||
redirect: '/dashboard/workbench',
|
||||
redirect: '/dashboard/analysis',
|
||||
meta: {
|
||||
icon: 'ion:grid-outline',
|
||||
title: t('routes.dashboard.dashboard'),
|
||||
@@ -26,6 +26,7 @@ const dashboard: AppRouteModule = {
|
||||
name: 'Analysis',
|
||||
component: () => import('/@/views/dashboard/analysis/index.vue'),
|
||||
meta: {
|
||||
affix: true,
|
||||
title: t('routes.dashboard.analysis'),
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user