Newer
Older
sensorHubPlusFront / src / router / modules / dashboard.ts
liyaguang 8 days ago 688 bytes 页面搭建
import type { Route } from '@/global'

const Layout = () => import('@/layouts/index.vue')

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

export default routes