Routing
1. How to add a new route?
// ----------------------------------------------------
// File: src/router/MainRoutes.ts
// ----------------------------------------------------
const MainRoutes = {
path: '/main',
meta: {
requiresAuth: true
},
redirect: '/main',
component: () => import('@/layouts/full/FullLayout.vue'),
children: [
{
name: 'Analytical',
path: '/dashboards/analytical',
component: () => import('@/views/dashboards/analytical/Analytical.vue'),
},
]
}
2. How to add page to sidebar ?
// ----------------------------------------------------
// File: src/layouts/full/vertical-sidebar/sidebarItem.ts
// ----------------------------------------------------
const sidebarItem: menu[] = [
{ header: 'Home' },
{
title: "Analytical",
icon: ChartPieIcon,
to: "/dashboards/analytical",
},
]