Newer
Older
safe_production_front / src / router / modules / home.ts
import type { Route } from '@/global'

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

const routes: Route.recordRaw[] = [
  // 首页
  {
    path: '/workHome',
    component: Layout,
    redirect: '/workHome/map',
    name: 'TDashboard',
    meta: {
      title: '首页',
      icon: 'icon-map',
      auth: '/dashboard',
    },
    children: [
      {
        path: 'map',
        component: () => import('@/views/map/map-bak.vue'),
        name: 'TDashboardPage',
        meta: {
          title: '首页',
          icon: 'icon-map',
          auth: '/dashboard',
        },
      },
    ],
  },
]

export default routes