Newer
Older
carbon-metering-front / src / router / modules / useGas.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: '/gas',
    component: Layout,
    redirect: '/gas/gaslist',
    name: 'Gas',
    meta: {
      title: '用气监测',
      icon: 'ep:key',
      auth: '/consumption',
    },
    children: [
      {
        path: '/gaslist',
        component: Layout,
        redirect: '/gaslist/gaspage',
        name: 'GasList',
        meta: {
          title: '用气监测',
          icon: 'ep:key',
          auth: '/data/consumption',
        },
        children: [
          {
            path: 'gaspage',
            name: 'GasPage',
            component: () => import('@/views/data/consumption/index.vue'),
            meta: {
              title: '用气监测',
              auth: '/data/consumption',
              sidebar: false,
              breadcrumb: true,
              activeMenu: '/gas',
            },
          },
        ],
      },
    ],
  },
]

export default routes