Newer
Older
BJgas-metering-front / src / router / modules / alarm.ts
liyaguang on 23 Apr 2023 690 bytes feat(*): 基础菜单/路由/权限配置
// 报警管理
import type { Route } from '@/global'

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

export default routes