import { UserLayout, TabLayout, RouteView, BlankLayout, PageView } 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: "user" */ '@/views/user/Login')
      },
      {
        path: 'transfer-local',
        name: 'transfer-local',
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/transferLocal')
      },
      {
        path: 'register',
        name: 'register',
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/Register')
      },
      {
        path: 'register-result',
        name: 'registerResult',
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/RegisterResult')
      },
      {
        path: 'alteration',
        name: 'alteration',
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/Alteration')
      },
      {
        path: 'layer',
        name: 'layer',
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/layer')
      },
      {
        path: 'FStransfer',
        name: 'FStransfer',
        component: () => import(/* webpackChunkName: "fail" */ '@/views/user/FStransfer')
      },
      {
        path: 'new-batch',
        name: 'newBatch',
        component: () => import(/* webpackChunkName: "fail" */ '@/views/modules/kuaishouapp/newBatch')
      },
      {
        path: 'lookPreview',
        name: 'lookPreview',
        component: () => import(/* webpackChunkName: "fail" */ '@/views/modules/kuaishouapp/newBatch/lookPreview')
      }
    ]
  },
  {
    path: '/creat-config',
    name: 'creatConfig',
    component: () => import(/* webpackChunkName: "fail" */ '@/views/modules/autoLaunch/configProject/creatConfig')
  },

  
  {
    path: '/creat-material-test',
    name: 'creatMaterialTest',
    component: () => import(/* webpackChunkName: "fail" */ '@/views/modules/autoLaunch/material-test/creatMaterialTest')
  },
  {
    path: '/create-launch',
    name: 'createLaunch',
    component: () => import(/* webpackChunkName: "fail" */ '@/views/modules/autoLaunchRevision/createLaunch')
  },
  {
    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')
  },
  {
    path: '/errorPage',
    name: 'errorPage',
    component: () => import(/* webpackChunkName: "fail" */ '@/views/errorPage')
  },
  {
    path: '/boss-data-kanban',
    name: 'bossDataKanban',
    component: () => import(/* webpackChunkName: "fail" */ '@/views/bossDataKanban/index')
  },

]
