Newer
Older
robot_dog_patrol_front / src / router / modules / menus.ts
dutingting on 24 Feb 759 bytes 暂存
// 所有菜单路由
import system from './system'
import type { Route } from '@/global'
const Layout = () => import('@/layouts/index.vue')

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

export default routes