/*
 * 公共页面路由表
 * */
import layout from '@/components/layout/layout'
import register from './register'// 注册

export default [
  // 桌面
  {
    path: '/',
    name: 'home',
    component: layout,
    redirect: '/home',
    children: [
      { path: 'home', component: () => import('@/views/home'/* chunkName: "check-script" */) }
    ]
  },
  {
    path: '/RetrievePassword',
    component: () => import(/* webpackChunkName: "check-script" */'@/views/common/user/retrievePassword/retrievePassword.vue')
  },
  {
    path: '/login',
    component: () => import('@/views/common/login/login')
  },
  // 登陆失败页面
  {
    path: '/loginError',
    component: () => import('@/views/common/login/loginError')
  },
  {
    path: '/404',
    component: () => import('@/views/common/error/404')
  },
  ...register, // 注册
  {
    path: '*',
    redirect: '/404'
  }
]
