import type { AppRouter } from '@/router/config/index'

export const baseRouter: AppRouter= {
  name: 'Base',
  path: '',
  meta: {
    title: '首页',
    hidden: false,
    hiddenInMenu: true,
  },
  component: 'BaseLayout',
  children: []
}

export const globalRouter = [
  {
    name: 'LoginView',
    path: '/login',
    redirect: '/login/index',
    icon: 'HomeOutlined',
    hidden: false,
    meta: {
      icon: 'HomeOutlined',
      title: '用户登录',
    },
    component: () => import('@/components/Base/Layout/LoginLayout/index.vue'),
    children: [
      {
        name: 'Login',
        path: 'index',
        meta: {
          hidden: false,
          title: '用户登录',
        },
        component: () => import('@/views/login/index.vue'),

      },
    ]
  },
]
