Newer
Older
carbon-metering-front / src / router / modules / carbonFootprint.ts
// 碳足迹监测
import type { Route } from '@/global'

// const Layout = () => import('@/layouts/index.vue')
const routes: Route.recordRaw[] = [
  {
    path: '/carbonFootprint',
    // component: Layout,
    redirect: '/carbonFootprint/footprint',
    name: 'Dfootprint',
    meta: {
      title: '碳足迹监测',
      icon: 'ep:key',
      auth: '/footprint',
    },
    children: [
      {
        path: 'footprint',
        name: 'Footprint',
        component: () => import('@/views/footprint/index.vue'),
        meta: {
          title: '碳足迹监测',
          auth: '/footprint',
          sidebar: false,
          breadcrumb: true,
          activeMenu: '/carbonFootprint',
        },
      },
    ],
  },
]

export default routes