Newer
Older
BJgas-metering-front / src / router / modules / dashboard.ts
liyaguang on 23 Apr 2023 706 bytes feat(*): 基础菜单/路由/权限配置
// 首页看板
import type { Route } from '@/global'

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

export default routes