Newer
Older
carbon-metering-front / src / router / modules / environment.ts
liyaguang on 30 Jun 2023 1 KB fix(*): 菜单调整
// 环境监测
import type { Route } from '@/global'

const Layout = () => import('@/layouts/index.vue')
const routes: Route.recordRaw[] = [
  {
    path: '/environment',
    component: Layout,
    redirect: '/environment/dataEnvironment',
    name: 'Environment',
    meta: {
      title: '环境监测',
      icon: 'ep:key',
      auth: '/environment',
    },
    children: [
      {
        path: '/dataEnvironment',
        component: Layout,
        redirect: '/dataEnvironment/environmentpage',
        name: 'Denvironment',
        meta: {
          title: '环境参数',
          icon: 'ep:key',
          auth: '/data/environment',
        },
        children: [
          {
            path: 'environmentpage',
            name: 'EnvironmentPage',
            component: () => import('@/views/data/environment/index.vue'),
            meta: {
              title: '环境参数',
              auth: '/data/environment',
              sidebar: false,
              breadcrumb: true,
              activeMenu: '/environment',
            },
          },
        ],
      },
    ],
  },
]

export default routes