38 lines
891 B
TypeScript
38 lines
891 B
TypeScript
import type { RouteRecordRaw } from 'vue-router';
|
|
|
|
const routes: RouteRecordRaw[] = [
|
|
{
|
|
meta: {
|
|
hideInMenu: true,
|
|
icon: 'lucide:layout-dashboard',
|
|
order: 0,
|
|
title: 'menu-title.controlCenter',
|
|
},
|
|
name: 'Dashboard',
|
|
path: '/dashboard',
|
|
redirect: '/dashboard/workspace',
|
|
children: [
|
|
{
|
|
component: () => import('#/views/dashboard/analytics/index.vue'),
|
|
meta: {
|
|
hideInMenu: true,
|
|
title: 'menu-title.analytics',
|
|
},
|
|
name: 'DashboardAnalytics',
|
|
path: '/dashboard/analytics',
|
|
},
|
|
{
|
|
component: () => import('#/views/dashboard/workspace/index.vue'),
|
|
meta: {
|
|
hideInMenu: true,
|
|
title: 'menu-title.workspace',
|
|
},
|
|
name: 'DashboardWorkspace',
|
|
path: '/dashboard/workspace',
|
|
},
|
|
],
|
|
},
|
|
];
|
|
|
|
export default routes;
|