Newer
Older
carbon-metering-front / src / router / modules / useHot.ts
liyaguang on 30 Jun 2023 1011 bytes fix(*): 菜单调整
// 用热监测
import type { Route } from '@/global'

const Layout = () => import('@/layouts/index.vue')
const routes: Route.recordRaw[] = [
  {
    path: '/hot',
    component: Layout,
    redirect: '/hot/hotlist',
    name: 'Hot',
    meta: {
      title: '用热监测',
      icon: 'ep:key',
      auth: '/hot',
    },
    children: [
      {
        path: '/hotlist',
        component: Layout,
        redirect: '/hotlist/hotpage',
        name: 'HotList',
        meta: {
          title: '用热监测',
          icon: 'ep:key',
          auth: '/data/hot',
        },
        children: [
          {
            path: 'hotpage',
            name: 'HotPage',
            component: () => import('@/views/data/useHeat/index.vue'),
            meta: {
              title: '用热监测',
              auth: '/data/hot',
              sidebar: false,
              breadcrumb: true,
              activeMenu: '/hot',
            },
          },
        ],
      },
    ],
  },
]

export default routes