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

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