Newer
Older
carbon-metering-front / src / router / modules / dashboard.ts
liyaguang on 21 Apr 2023 697 bytes feat(*): 首页/用电监测静态
// 碳足迹预警
import type { Route } from '@/global'

const Layout = () => import('@/layouts/index.vue')
const routes: Route.recordRaw[] = [
  {
    path: '/dashboard',
    component: Layout,
    redirect: '/dashboard/index',
    name: 'Dashboard',
    meta: {
      title: '首页',
      icon: 'ep:key',
      auth: '/dashboard',
    },
    children: [
      {
        path: 'index',
        name: 'index',
        component: () => import('@/views/dashboard/index.vue'),
        meta: {
          title: '首页',
          auth: '/dashboard',
          sidebar: false,
          breadcrumb: true,
          activeMenu: '/dashboard',
        },
      },
    ],
  },
]

export default routes