// BlankLayout, TabLayout, UserLayout
import { TabLayout, UserLayout } from '@/components/layouts'

/**
 * 走菜单，走权限控制
 * @type {[null,null]}
 */
export const asyncRouterMap = [
  // {
  //   path: '/',
  //   name: 'dashboard',
  //   component: TabLayout,
  //   meta: { title: '首页' },
  //   redirect: '/dashboard/workplace',
  //   children: []
  // },
  {
    path: '*',
    redirect: '/404',
    hidden: true
  }
]

/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [
  {
    path: '/user',
    component: UserLayout,
    redirect: '/user/login',
    hidden: true,
    children: [
      {
        path: 'login',
        name: 'login',
        component: () => import(/* webpackChunkName: "login" */ '@/views/login/Login')
      }
      // {
      // 	path: 'register',
      // 	name: 'register',
      // 	component: () => import(/* webpackChunkName: "login" */ '@/views/login/Register')
      // },
      // {
      // 	path: 'register-result',
      // 	name: 'registerResult',
      // 	component: () => import(/* webpackChunkName: "login" */ '@/views/login/RegisterResult')
      // },
      // {
      // 	path: 'alteration',
      // 	name: 'alteration',
      // 	component: () => import(/* webpackChunkName: "login" */ '@/views/login/Alteration')
      // }
    ]
  },
  // {
  // 	path: '/test',
  // 	component: BlankLayout,
  // 	redirect: '/test/home',
  // 	children: [
  // 		{
  // 			path: 'home',
  // 			name: 'TestHome',
  // 			component: () => import('@/views/Home')
  // 		}
  // 	]
  // },
  {
    path: '/404',
    component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404')
  }
]
