const loginAccount = () => import('@/components/loginAccount.vue')
const loginCode = () => import('@/components/loginCode.vue')
const password = () => import('@/components/password.vue')

export const routes = [
  {
    path: '/certs',
    component: () => import('./components/layout.vue'),
    redirect: '/certs/login/index',
    children: [
      {
        path: 'login',
        component: () => import('./login.vue'),
        redirect: '/certs/login/index',
        children: [
          { path: '', redirect: '/certs/login/index' },
          { path: 'index', component: loginAccount },
          { path: 'code', component: loginCode }
        ]
      },
      {
        path: 'password',
        component: () => import('./password.vue'),
        children: [{ path: '', component: password }]
      }
    ]
  }
]
